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

291 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
291
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

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

  1. 1. Pseudo code)Flow chart)
  2. 2. FORTRAN)COBOL) RPG) Pascal)
  3. 3. Java) C#) C++)
  4. 4. fourth-generation languages: 4GLs) GL SQL) Hypertext Markup Language: HTML )tags)
  5. 5. main( )int main ( ) { <
  6. 6. - 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"
  7. 7. - printf ("Enter the number you guess ") ;16 printf ("Too highn") ;17 printf ("Too lown") ;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 ( )-
  8. 8. while while ( number target- no_of_guesses = no_of_guesses + 1 ; no_of_guesses no_of_guesses operand ) operator )
  9. 9. if-else if else if if if else- return25 return 0; return main ( ) main ( )

×