SlideShare a Scribd company logo
1 of 2
a,b,c,d


               Start




       a,b

        C=a+b



        C%2==0
F                                T

lose                       win



       Play again

         yes = 1


                       T
             d ==1


        F
Supaporn Chounchom class 6/3 no.33

# include <stdio.h>

Main ()

{

Int a,b,c,d;

      Do

      {

               Printf (“In”);

               Printf (“Startn”);

               Scantf (“%d%d”; &a,&b);

      C = a+b

      If (c%2 == 0 )

               Printf (“winn”);

      else

               Printf (“losem”);
      Printf (“play again (yes=1)n”);

      }

      While (d==1);

      getch ();

}

More Related Content

What's hot

딥러닝 교육 자료 #2
딥러닝 교육 자료 #2딥러닝 교육 자료 #2
딥러닝 교육 자료 #2Ashal aka JOKER
 
Bayesian workflow with PyMC3 and ArviZ
Bayesian workflow with PyMC3 and ArviZBayesian workflow with PyMC3 and ArviZ
Bayesian workflow with PyMC3 and ArviZCorrie Bartelheimer
 
Adding two roman number
Adding two roman numberAdding two roman number
Adding two roman numberFeedGoCode
 
Trapezoidal log log
Trapezoidal log logTrapezoidal log log
Trapezoidal log logPatrick Hui
 
The Moore-Spiegel Oscillator
The Moore-Spiegel OscillatorThe Moore-Spiegel Oscillator
The Moore-Spiegel OscillatorAbhranil Das
 
Mac Interview Workshop 2021
Mac Interview Workshop 2021Mac Interview Workshop 2021
Mac Interview Workshop 2021Michael Viveros
 
Decimal Place Value Intro Set
Decimal Place Value   Intro SetDecimal Place Value   Intro Set
Decimal Place Value Intro Setstanhopekris
 
Program implementation and testing
Program implementation and testingProgram implementation and testing
Program implementation and testingabukky52
 
Equation plane
Equation planeEquation plane
Equation planecmnell
 
【AI実装4】TensorFlowのプログラムを読む2 非線形回帰
【AI実装4】TensorFlowのプログラムを読む2 非線形回帰【AI実装4】TensorFlowのプログラムを読む2 非線形回帰
【AI実装4】TensorFlowのプログラムを読む2 非線形回帰Ruo Ando
 
6th math c1 -l52--feb26
6th math c1 -l52--feb266th math c1 -l52--feb26
6th math c1 -l52--feb26jdurst65
 

What's hot (20)

딥러닝 교육 자료 #2
딥러닝 교육 자료 #2딥러닝 교육 자료 #2
딥러닝 교육 자료 #2
 
3
33
3
 
Progr2
Progr2Progr2
Progr2
 
Bayesian workflow with PyMC3 and ArviZ
Bayesian workflow with PyMC3 and ArviZBayesian workflow with PyMC3 and ArviZ
Bayesian workflow with PyMC3 and ArviZ
 
Adding two roman number
Adding two roman numberAdding two roman number
Adding two roman number
 
Trapezoidal log log
Trapezoidal log logTrapezoidal log log
Trapezoidal log log
 
The Moore-Spiegel Oscillator
The Moore-Spiegel OscillatorThe Moore-Spiegel Oscillator
The Moore-Spiegel Oscillator
 
Conformal mapping
Conformal mappingConformal mapping
Conformal mapping
 
Mac Interview Workshop 2021
Mac Interview Workshop 2021Mac Interview Workshop 2021
Mac Interview Workshop 2021
 
Efoom 2018
Efoom 2018Efoom 2018
Efoom 2018
 
Decimal Place Value Intro Set
Decimal Place Value   Intro SetDecimal Place Value   Intro Set
Decimal Place Value Intro Set
 
Plsql
PlsqlPlsql
Plsql
 
Program implementation and testing
Program implementation and testingProgram implementation and testing
Program implementation and testing
 
Equation plane
Equation planeEquation plane
Equation plane
 
PythonArtCode
PythonArtCodePythonArtCode
PythonArtCode
 
Warna rgb
Warna rgbWarna rgb
Warna rgb
 
Share test
Share testShare test
Share test
 
coloring method
 coloring method coloring method
coloring method
 
【AI実装4】TensorFlowのプログラムを読む2 非線形回帰
【AI実装4】TensorFlowのプログラムを読む2 非線形回帰【AI実装4】TensorFlowのプログラムを読む2 非線形回帰
【AI実装4】TensorFlowのプログラムを読む2 非線形回帰
 
6th math c1 -l52--feb26
6th math c1 -l52--feb266th math c1 -l52--feb26
6th math c1 -l52--feb26
 

Viewers also liked

911 day of service general overview
911 day of service general overview911 day of service general overview
911 day of service general overviewSierra Oneoc
 
Social Media Horror Stories for Law Students
Social Media Horror Stories for Law StudentsSocial Media Horror Stories for Law Students
Social Media Horror Stories for Law StudentsJonathan Ezor
 
90 let KJM
90 let KJM90 let KJM
90 let KJMcaryax
 
กิตติยา ธรพร9-43
กิตติยา ธรพร9-43กิตติยา ธรพร9-43
กิตติยา ธรพร9-43prasoetbh
 
Лекция №9-1 Прогнозы финансового плана
Лекция №9-1 Прогнозы финансового планаЛекция №9-1 Прогнозы финансового плана
Лекция №9-1 Прогнозы финансового планаAleksandr Azanov
 
Grow your small business or dental/medical practice with the 90day strategic ...
Grow your small business or dental/medical practice with the 90day strategic ...Grow your small business or dental/medical practice with the 90day strategic ...
Grow your small business or dental/medical practice with the 90day strategic ...clickconvertsell
 
第9回ソーシャルメディア道場:広島セミナー合宿お客様の声
第9回ソーシャルメディア道場:広島セミナー合宿お客様の声第9回ソーシャルメディア道場:広島セミナー合宿お客様の声
第9回ソーシャルメディア道場:広島セミナー合宿お客様の声新潟コンサルタント横田秀珠
 
9-М клас
9-М клас9-М клас
9-М класYulia
 
ใบงานที่ 9-15 น.ส.วริศรา บุญเจริญตั้งสกุล
ใบงานที่ 9-15 น.ส.วริศรา บุญเจริญตั้งสกุลใบงานที่ 9-15 น.ส.วริศรา บุญเจริญตั้งสกุล
ใบงานที่ 9-15 น.ส.วริศรา บุญเจริญตั้งสกุลDp' Warissara
 
ثورة 90 يوم استعدادا لرمضان
ثورة 90 يوم استعدادا لرمضانثورة 90 يوم استعدادا لرمضان
ثورة 90 يوم استعدادا لرمضانanmyamas
 
PTAB: Success by the Numbers
PTAB: Success by the NumbersPTAB: Success by the Numbers
PTAB: Success by the NumbersPatexia Inc.
 
вас приветствует 9 а
вас приветствует  9 авас приветствует  9 а
вас приветствует 9 аabelmasova
 
93857917 experimente-clasice-in-psihologie
93857917 experimente-clasice-in-psihologie93857917 experimente-clasice-in-psihologie
93857917 experimente-clasice-in-psihologieGabriela Dumitru
 
9 1/2 raisons pourquoi NE PAS aller sur les réseaux sociaux
9 1/2 raisons pourquoi NE PAS aller sur les réseaux sociaux9 1/2 raisons pourquoi NE PAS aller sur les réseaux sociaux
9 1/2 raisons pourquoi NE PAS aller sur les réseaux sociauxMinter Dial
 

Viewers also liked (20)

911 day of service general overview
911 day of service general overview911 day of service general overview
911 day of service general overview
 
Social Media Horror Stories for Law Students
Social Media Horror Stories for Law StudentsSocial Media Horror Stories for Law Students
Social Media Horror Stories for Law Students
 
9/14 Sales meeting
9/14 Sales meeting9/14 Sales meeting
9/14 Sales meeting
 
9 22 Ss2
9 22 Ss29 22 Ss2
9 22 Ss2
 
90 let KJM
90 let KJM90 let KJM
90 let KJM
 
กิตติยา ธรพร9-43
กิตติยา ธรพร9-43กิตติยา ธรพร9-43
กิตติยา ธรพร9-43
 
Лекция №9-1 Прогнозы финансового плана
Лекция №9-1 Прогнозы финансового планаЛекция №9-1 Прогнозы финансового плана
Лекция №9-1 Прогнозы финансового плана
 
Grow your small business or dental/medical practice with the 90day strategic ...
Grow your small business or dental/medical practice with the 90day strategic ...Grow your small business or dental/medical practice with the 90day strategic ...
Grow your small business or dental/medical practice with the 90day strategic ...
 
第9回ソーシャルメディア道場:広島セミナー合宿お客様の声
第9回ソーシャルメディア道場:広島セミナー合宿お客様の声第9回ソーシャルメディア道場:広島セミナー合宿お客様の声
第9回ソーシャルメディア道場:広島セミナー合宿お客様の声
 
ใบงาน 9.1
ใบงาน 9.1ใบงาน 9.1
ใบงาน 9.1
 
9-М клас
9-М клас9-М клас
9-М клас
 
ใบงานที่ 9-15 น.ส.วริศรา บุญเจริญตั้งสกุล
ใบงานที่ 9-15 น.ส.วริศรา บุญเจริญตั้งสกุลใบงานที่ 9-15 น.ส.วริศรา บุญเจริญตั้งสกุล
ใบงานที่ 9-15 น.ส.วริศรา บุญเจริญตั้งสกุล
 
90 10 principle english
90 10 principle english90 10 principle english
90 10 principle english
 
ثورة 90 يوم استعدادا لرمضان
ثورة 90 يوم استعدادا لرمضانثورة 90 يوم استعدادا لرمضان
ثورة 90 يوم استعدادا لرمضان
 
PTAB: Success by the Numbers
PTAB: Success by the NumbersPTAB: Success by the Numbers
PTAB: Success by the Numbers
 
вас приветствует 9 а
вас приветствует  9 авас приветствует  9 а
вас приветствует 9 а
 
93857917 experimente-clasice-in-psihologie
93857917 experimente-clasice-in-psihologie93857917 experimente-clasice-in-psihologie
93857917 experimente-clasice-in-psihologie
 
90. fotos diplomado
90. fotos diplomado90. fotos diplomado
90. fotos diplomado
 
9 1/2 raisons pourquoi NE PAS aller sur les réseaux sociaux
9 1/2 raisons pourquoi NE PAS aller sur les réseaux sociaux9 1/2 raisons pourquoi NE PAS aller sur les réseaux sociaux
9 1/2 raisons pourquoi NE PAS aller sur les réseaux sociaux
 
911 tower sequence
911 tower sequence911 tower sequence
911 tower sequence
 

More from Areeya Onnom

งานย่อย1 ประกวด
งานย่อย1 ประกวดงานย่อย1 ประกวด
งานย่อย1 ประกวดAreeya Onnom
 
ประกวด
ประกวดประกวด
ประกวดAreeya Onnom
 
ประกวด
ประกวดประกวด
ประกวดAreeya Onnom
 
งานย่อย1
งานย่อย1งานย่อย1
งานย่อย1Areeya Onnom
 
'ไทยรัฐ ฟอร์ ไอแพด'
'ไทยรัฐ ฟอร์ ไอแพด' 'ไทยรัฐ ฟอร์ ไอแพด'
'ไทยรัฐ ฟอร์ ไอแพด' Areeya Onnom
 
แท็บเล็ต
แท็บเล็ตแท็บเล็ต
แท็บเล็ตAreeya Onnom
 
เลอโนโวเข็นโน้ตบุ๊กลูกผสมแท็บเล็ต
เลอโนโวเข็นโน้ตบุ๊กลูกผสมแท็บเล็ตเลอโนโวเข็นโน้ตบุ๊กลูกผสมแท็บเล็ต
เลอโนโวเข็นโน้ตบุ๊กลูกผสมแท็บเล็ตAreeya Onnom
 
Google เตรียมทดสอบ
Google เตรียมทดสอบGoogle เตรียมทดสอบ
Google เตรียมทดสอบAreeya Onnom
 
ข่าวไอที
ข่าวไอทีข่าวไอที
ข่าวไอทีAreeya Onnom
 
รายงานคอม
รายงานคอมรายงานคอม
รายงานคอมAreeya Onnom
 
รายงานคอม
รายงานคอมรายงานคอม
รายงานคอมAreeya Onnom
 
คำแนะนำชมเชย
คำแนะนำชมเชย คำแนะนำชมเชย
คำแนะนำชมเชย Areeya Onnom
 
คำแนะนำศักดิ์ศรัณย์
คำแนะนำศักดิ์ศรัณย์คำแนะนำศักดิ์ศรัณย์
คำแนะนำศักดิ์ศรัณย์Areeya Onnom
 
คำแนะนำภานุพงศ์
คำแนะนำภานุพงศ์คำแนะนำภานุพงศ์
คำแนะนำภานุพงศ์Areeya Onnom
 
โรงเรียนในฝัน
โรงเรียนในฝันโรงเรียนในฝัน
โรงเรียนในฝันAreeya Onnom
 
ตอบคำถาม โรงเรียนในฝัน
ตอบคำถาม โรงเรียนในฝันตอบคำถาม โรงเรียนในฝัน
ตอบคำถาม โรงเรียนในฝันAreeya Onnom
 
ตอบคำถาม โรงเรียนในฝัน
ตอบคำถาม โรงเรียนในฝันตอบคำถาม โรงเรียนในฝัน
ตอบคำถาม โรงเรียนในฝันAreeya Onnom
 
โรงเรียนในฝัน
โรงเรียนในฝันโรงเรียนในฝัน
โรงเรียนในฝันAreeya Onnom
 

More from Areeya Onnom (20)

งานย่อย1 ประกวด
งานย่อย1 ประกวดงานย่อย1 ประกวด
งานย่อย1 ประกวด
 
ประกวด
ประกวดประกวด
ประกวด
 
ประกวด
ประกวดประกวด
ประกวด
 
งานย่อย1
งานย่อย1งานย่อย1
งานย่อย1
 
Nokia Lumia 920
Nokia Lumia 920 Nokia Lumia 920
Nokia Lumia 920
 
'ไทยรัฐ ฟอร์ ไอแพด'
'ไทยรัฐ ฟอร์ ไอแพด' 'ไทยรัฐ ฟอร์ ไอแพด'
'ไทยรัฐ ฟอร์ ไอแพด'
 
แท็บเล็ต
แท็บเล็ตแท็บเล็ต
แท็บเล็ต
 
เลอโนโวเข็นโน้ตบุ๊กลูกผสมแท็บเล็ต
เลอโนโวเข็นโน้ตบุ๊กลูกผสมแท็บเล็ตเลอโนโวเข็นโน้ตบุ๊กลูกผสมแท็บเล็ต
เลอโนโวเข็นโน้ตบุ๊กลูกผสมแท็บเล็ต
 
Google เตรียมทดสอบ
Google เตรียมทดสอบGoogle เตรียมทดสอบ
Google เตรียมทดสอบ
 
it news
it newsit news
it news
 
ข่าวไอที
ข่าวไอทีข่าวไอที
ข่าวไอที
 
รายงานคอม
รายงานคอมรายงานคอม
รายงานคอม
 
รายงานคอม
รายงานคอมรายงานคอม
รายงานคอม
 
คำแนะนำชมเชย
คำแนะนำชมเชย คำแนะนำชมเชย
คำแนะนำชมเชย
 
คำแนะนำศักดิ์ศรัณย์
คำแนะนำศักดิ์ศรัณย์คำแนะนำศักดิ์ศรัณย์
คำแนะนำศักดิ์ศรัณย์
 
คำแนะนำภานุพงศ์
คำแนะนำภานุพงศ์คำแนะนำภานุพงศ์
คำแนะนำภานุพงศ์
 
โรงเรียนในฝัน
โรงเรียนในฝันโรงเรียนในฝัน
โรงเรียนในฝัน
 
ตอบคำถาม โรงเรียนในฝัน
ตอบคำถาม โรงเรียนในฝันตอบคำถาม โรงเรียนในฝัน
ตอบคำถาม โรงเรียนในฝัน
 
ตอบคำถาม โรงเรียนในฝัน
ตอบคำถาม โรงเรียนในฝันตอบคำถาม โรงเรียนในฝัน
ตอบคำถาม โรงเรียนในฝัน
 
โรงเรียนในฝัน
โรงเรียนในฝันโรงเรียนในฝัน
โรงเรียนในฝัน
 

Simple Odd/Even Number Sum Game

  • 1. a,b,c,d Start a,b C=a+b C%2==0 F T lose win Play again yes = 1 T d ==1 F
  • 2. Supaporn Chounchom class 6/3 no.33 # include <stdio.h> Main () { Int a,b,c,d; Do { Printf (“In”); Printf (“Startn”); Scantf (“%d%d”; &a,&b); C = a+b If (c%2 == 0 ) Printf (“winn”); else Printf (“losem”); Printf (“play again (yes=1)n”); } While (d==1); getch (); }