SlideShare a Scribd company logo
1 of 13
XMLPro 7回目
前回の復習
2つの問題について
2
for
3
やってみて
• 1から100までの数値の中で
3で割り切れる時は「Fizz」
5で割り切れる時は「Buzz」
両者で割り切れる時は「FizzBuzz」
と表示するプログラムを書く
4
答え
5
本日の内容
配列 +α
6
多重ループ
入れ子とも呼ばれる
FizzBuzz問題の時forの繰り返しの中に
if文で判定をする処理を書いた
これと同じでfor文の中に
for文をつくることもできる
7
8
実行結果
9
九九の表を作る
• 1*1から9*9の九九の表を作る
1*1~1*9
2*1~2*9
3*1~3*9
・・・
10
実行結果
11
答え
12
やってみよう
• 1~100までの数字で素数を求めるプログラム
を作ろう
13

More Related Content

Viewers also liked

Вадим Розов- Разработка под Blackberry. Подводные грабли
Вадим Розов- Разработка под Blackberry. Подводные граблиВадим Розов- Разработка под Blackberry. Подводные грабли
Вадим Розов- Разработка под Blackberry. Подводные граблиUA Mobile
 
Microrrelatos violencia de_xénero
Microrrelatos violencia de_xéneroMicrorrelatos violencia de_xénero
Microrrelatos violencia de_xénerobiblioanon
 
Fascinating MOTHER RUSSIA (II) - Emanuela Atanasiu
Fascinating MOTHER RUSSIA (II) - Emanuela AtanasiuFascinating MOTHER RUSSIA (II) - Emanuela Atanasiu
Fascinating MOTHER RUSSIA (II) - Emanuela AtanasiuElenusz
 
Charla Excel y Power Pivot
Charla Excel y Power PivotCharla Excel y Power Pivot
Charla Excel y Power PivotRaona
 
Ekjon himu koekti jhi jhi poka ha
Ekjon himu koekti jhi jhi poka haEkjon himu koekti jhi jhi poka ha
Ekjon himu koekti jhi jhi poka haHasan Bdboy
 
Estudio candidatos perú 2 0
Estudio candidatos perú 2 0 Estudio candidatos perú 2 0
Estudio candidatos perú 2 0 LLYC
 
Guía conciliación Ayuntamiento de Maracena
Guía conciliación Ayuntamiento de MaracenaGuía conciliación Ayuntamiento de Maracena
Guía conciliación Ayuntamiento de MaracenaRoadmap
 
Competitividad Empresarial y su relación con la innovación
Competitividad Empresarial y su relación con la innovaciónCompetitividad Empresarial y su relación con la innovación
Competitividad Empresarial y su relación con la innovaciónCamilo Montes
 
Introducing Third Parties
Introducing Third PartiesIntroducing Third Parties
Introducing Third Partiesjetiya
 
Presentatie essenburgpark
Presentatie essenburgparkPresentatie essenburgpark
Presentatie essenburgparkEssenburgpark
 
21013532양몽원
21013532양몽원21013532양몽원
21013532양몽원艺馨 胡
 

Viewers also liked (20)

Вадим Розов- Разработка под Blackberry. Подводные грабли
Вадим Розов- Разработка под Blackberry. Подводные граблиВадим Розов- Разработка под Blackberry. Подводные грабли
Вадим Розов- Разработка под Blackberry. Подводные грабли
 
Microrrelatos violencia de_xénero
Microrrelatos violencia de_xéneroMicrorrelatos violencia de_xénero
Microrrelatos violencia de_xénero
 
Presentación5
Presentación5Presentación5
Presentación5
 
Fascinating MOTHER RUSSIA (II) - Emanuela Atanasiu
Fascinating MOTHER RUSSIA (II) - Emanuela AtanasiuFascinating MOTHER RUSSIA (II) - Emanuela Atanasiu
Fascinating MOTHER RUSSIA (II) - Emanuela Atanasiu
 
Charla Excel y Power Pivot
Charla Excel y Power PivotCharla Excel y Power Pivot
Charla Excel y Power Pivot
 
Rinstar
RinstarRinstar
Rinstar
 
Ekjon himu koekti jhi jhi poka ha
Ekjon himu koekti jhi jhi poka haEkjon himu koekti jhi jhi poka ha
Ekjon himu koekti jhi jhi poka ha
 
616 quanto almejo
616   quanto almejo616   quanto almejo
616 quanto almejo
 
Natan Residencial
Natan ResidencialNatan Residencial
Natan Residencial
 
Estudio candidatos perú 2 0
Estudio candidatos perú 2 0 Estudio candidatos perú 2 0
Estudio candidatos perú 2 0
 
Zima2
Zima2Zima2
Zima2
 
So con 2011
So con 2011So con 2011
So con 2011
 
Guía conciliación Ayuntamiento de Maracena
Guía conciliación Ayuntamiento de MaracenaGuía conciliación Ayuntamiento de Maracena
Guía conciliación Ayuntamiento de Maracena
 
Competitividad Empresarial y su relación con la innovación
Competitividad Empresarial y su relación con la innovaciónCompetitividad Empresarial y su relación con la innovación
Competitividad Empresarial y su relación con la innovación
 
Introducing Third Parties
Introducing Third PartiesIntroducing Third Parties
Introducing Third Parties
 
Presentatie essenburgpark
Presentatie essenburgparkPresentatie essenburgpark
Presentatie essenburgpark
 
21013532양몽원
21013532양몽원21013532양몽원
21013532양몽원
 
Itaúna Gold
Itaúna GoldItaúna Gold
Itaúna Gold
 
Documento 2
Documento 2Documento 2
Documento 2
 
Módulo 1. unidad 2
Módulo 1. unidad 2Módulo 1. unidad 2
Módulo 1. unidad 2
 

More from XMLProJ2014

More from XMLProJ2014 (20)

Java班講義資料第3回
Java班講義資料第3回Java班講義資料第3回
Java班講義資料第3回
 
Java班講義資料第2回
Java班講義資料第2回Java班講義資料第2回
Java班講義資料第2回
 
第1回Java講義資料
第1回Java講義資料第1回Java講義資料
第1回Java講義資料
 
00環境構築
00環境構築00環境構築
00環境構築
 
Mash up awards(クリスマス会)
Mash up awards(クリスマス会)Mash up awards(クリスマス会)
Mash up awards(クリスマス会)
 
きのこたけのこ戦争
きのこたけのこ戦争きのこたけのこ戦争
きのこたけのこ戦争
 
クリパ用Lt2014
クリパ用Lt2014クリパ用Lt2014
クリパ用Lt2014
 
ポケモン解説
ポケモン解説ポケモン解説
ポケモン解説
 
クリスマス会Lt
クリスマス会Ltクリスマス会Lt
クリスマス会Lt
 
一年ツイッター
一年ツイッター一年ツイッター
一年ツイッター
 
C++班
C++班C++班
C++班
 
C#班
C#班C#班
C#班
 
Web班
Web班Web班
Web班
 
Web 11
Web 11Web 11
Web 11
 
Web 09
Web 09Web 09
Web 09
 
Android班第4回
Android班第4回Android班第4回
Android班第4回
 
Web 10
Web 10Web 10
Web 10
 
OpenSource
OpenSourceOpenSource
OpenSource
 
百合について
百合について百合について
百合について
 
Web 08
Web 08Web 08
Web 08
 

Recently uploaded

【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)Hiroki Ichikura
 
TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案
TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案
TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案sugiuralab
 
TSAL operation mechanism and circuit diagram.pdf
TSAL operation mechanism and circuit diagram.pdfTSAL operation mechanism and circuit diagram.pdf
TSAL operation mechanism and circuit diagram.pdftaisei2219
 
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介Yuma Ohgami
 
SOPを理解する 2024/04/19 の勉強会で発表されたものです
SOPを理解する       2024/04/19 の勉強会で発表されたものですSOPを理解する       2024/04/19 の勉強会で発表されたものです
SOPを理解する 2024/04/19 の勉強会で発表されたものですiPride Co., Ltd.
 
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...Toru Tamaki
 
論文紹介:Semantic segmentation using Vision Transformers: A survey
論文紹介:Semantic segmentation using Vision Transformers: A survey論文紹介:Semantic segmentation using Vision Transformers: A survey
論文紹介:Semantic segmentation using Vision Transformers: A surveyToru Tamaki
 
論文紹介:Automated Classification of Model Errors on ImageNet
論文紹介:Automated Classification of Model Errors on ImageNet論文紹介:Automated Classification of Model Errors on ImageNet
論文紹介:Automated Classification of Model Errors on ImageNetToru Tamaki
 

Recently uploaded (8)

【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)
 
TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案
TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案
TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案
 
TSAL operation mechanism and circuit diagram.pdf
TSAL operation mechanism and circuit diagram.pdfTSAL operation mechanism and circuit diagram.pdf
TSAL operation mechanism and circuit diagram.pdf
 
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介
 
SOPを理解する 2024/04/19 の勉強会で発表されたものです
SOPを理解する       2024/04/19 の勉強会で発表されたものですSOPを理解する       2024/04/19 の勉強会で発表されたものです
SOPを理解する 2024/04/19 の勉強会で発表されたものです
 
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...
 
論文紹介:Semantic segmentation using Vision Transformers: A survey
論文紹介:Semantic segmentation using Vision Transformers: A survey論文紹介:Semantic segmentation using Vision Transformers: A survey
論文紹介:Semantic segmentation using Vision Transformers: A survey
 
論文紹介:Automated Classification of Model Errors on ImageNet
論文紹介:Automated Classification of Model Errors on ImageNet論文紹介:Automated Classification of Model Errors on ImageNet
論文紹介:Automated Classification of Model Errors on ImageNet