Top Banner
20

การพัฒนาโปรแกรม วิชญา เลขที่ 26

Jul 20, 2015

Download

Documents

winewic199
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: การพัฒนาโปรแกรม วิชญา เลขที่ 26
Page 2: การพัฒนาโปรแกรม วิชญา เลขที่ 26
Page 3: การพัฒนาโปรแกรม วิชญา เลขที่ 26

Pseudo code) Flow chart)

Page 4: การพัฒนาโปรแกรม วิชญา เลขที่ 26
Page 5: การพัฒนาโปรแกรม วิชญา เลขที่ 26
Page 6: การพัฒนาโปรแกรม วิชญา เลขที่ 26
Page 7: การพัฒนาโปรแกรม วิชญา เลขที่ 26
Page 8: การพัฒนาโปรแกรม วิชญา เลขที่ 26
Page 9: การพัฒนาโปรแกรม วิชญา เลขที่ 26

FORTRAN)

COBOL) RPG)

Pascal)

Page 10: การพัฒนาโปรแกรม วิชญา เลขที่ 26

Java) C#) C++)

Page 11: การพัฒนาโปรแกรม วิชญา เลขที่ 26

fourth-generation languages: 4GLs)

GL SQL)

Hypertext Markup Language: HTML )

tags)

Page 12: การพัฒนาโปรแกรม วิชญา เลขที่ 26

main( )

int main ( ) { <

Page 13: การพัฒนาโปรแกรม วิชญา เลขที่ 26
Page 14: การพัฒนาโปรแกรม วิชญา เลขที่ 26

- header files ) 1 #include <stdio.h>1 #include <stdiob.h>

printf( ) scanf( )

- variable declaration ) 6 int target ;7 int number ;8. int no_of_guesses = 1 ;

target, number no_of_guesses int )

data_type identification_name data_type identification_name

no_of_guesses

-

scanf ("%", &target) ;12 scanf ("%", &number) ;13 scanf ("%", &number) ;

scanf ( )

d"

Page 15: การพัฒนาโปรแกรม วิชญา เลขที่ 26

-

printf ("Enter the number you guess ") ;

16 printf ("Too high\n") ;

17 printf ("Too low\n") ;

19 printf ("Enter the number you guess ") ;

printf ( )

printf ( )

printf ("Correct - You try %d time . \n" , no_of_guesses ) ;

no_of_guesses

no_of_guesses int

d" scanf ( )

-

Page 16: การพัฒนาโปรแกรม วิชญา เลขที่ 26

while while (

number target

-

no_of_guesses = no_of_guesses + 1 ;

no_of_guesses

no_of_guesses

operand )

operator )

-

Page 17: การพัฒนาโปรแกรม วิชญา เลขที่ 26

if-else if else

if if

if else

- return

25 return 0;

return

main ( ) main ( )

Page 18: การพัฒนาโปรแกรม วิชญา เลขที่ 26
Page 19: การพัฒนาโปรแกรม วิชญา เลขที่ 26
Page 20: การพัฒนาโปรแกรม วิชญา เลขที่ 26