SlideShare ist ein Scribd-Unternehmen logo
1 von 20
Pseudo code)
Flow chart)
FORTRAN)

COBOL)              RPG)




         Pascal)
Java)   C#)   C++)
fourth-generation languages: 4GLs)



                              GL            SQL)
        Hypertext Markup Language: HTML )




tags)
main( )
int main ( ) { <
-                               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"
-
   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 ( )
-
while                                          while (



               number                        target




-
    no_of_guesses = no_of_guesses + 1 ;
                                                 no_of_guesses



                                          no_of_guesses

                    operand )
               operator )
if-else
   if                else
          if                                    if


               if                        else

-      return
25 return 0;
                                return




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

Weitere ähnliche Inhalte

Was ist angesagt? (20)

Final ds record
Final ds recordFinal ds record
Final ds record
 
Avl tree
Avl treeAvl tree
Avl tree
 
Double linked list
Double linked listDouble linked list
Double linked list
 
Data Structures Using C Practical File
Data Structures Using C Practical File Data Structures Using C Practical File
Data Structures Using C Practical File
 
contoh Program queue
contoh Program queuecontoh Program queue
contoh Program queue
 
C Prog. - Strings (Updated)
C Prog. - Strings (Updated)C Prog. - Strings (Updated)
C Prog. - Strings (Updated)
 
C & Python Introduction
C & Python IntroductionC & Python Introduction
C & Python Introduction
 
Practical File of C Language
Practical File of C LanguagePractical File of C Language
Practical File of C Language
 
Double linked list
Double linked listDouble linked list
Double linked list
 
C programming
C programmingC programming
C programming
 
programs
programsprograms
programs
 
Array
ArrayArray
Array
 
Session06 functions
Session06 functionsSession06 functions
Session06 functions
 
Data Structures Practical File
Data Structures Practical File Data Structures Practical File
Data Structures Practical File
 
SaraPIC
SaraPICSaraPIC
SaraPIC
 
C Prog. - Structures
C Prog. - StructuresC Prog. - Structures
C Prog. - Structures
 
Array list
Array listArray list
Array list
 
C workshop day 6
C workshop day 6C workshop day 6
C workshop day 6
 
Examples sandhiya class'
Examples sandhiya class'Examples sandhiya class'
Examples sandhiya class'
 
C Prog - Array
C Prog - ArrayC Prog - Array
C Prog - Array
 

Andere mochten auch

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

Andere mochten auch (7)

Chude02-nhom7
Chude02-nhom7Chude02-nhom7
Chude02-nhom7
 
Tailieu.vncty.com ch9 nhom7-tt_3893
Tailieu.vncty.com   ch9 nhom7-tt_3893Tailieu.vncty.com   ch9 nhom7-tt_3893
Tailieu.vncty.com ch9 nhom7-tt_3893
 
การพัฒนาโปรแกรม วิชญา เลขที่ 26.2
การพัฒนาโปรแกรม วิชญา เลขที่ 26.2การพัฒนาโปรแกรม วิชญา เลขที่ 26.2
การพัฒนาโปรแกรม วิชญา เลขที่ 26.2
 
Tailieu.vncty.com ch9 nhom8-tt_9248
Tailieu.vncty.com   ch9 nhom8-tt_9248Tailieu.vncty.com   ch9 nhom8-tt_9248
Tailieu.vncty.com ch9 nhom8-tt_9248
 
การพัฒนาโปรแกรม วิชญา
การพัฒนาโปรแกรม วิชญาการพัฒนาโปรแกรม วิชญา
การพัฒนาโปรแกรม วิชญา
 
การพัฒนาโปรแกรม วิชญา เลขที่ 26.2
การพัฒนาโปรแกรม วิชญา เลขที่ 26.2การพัฒนาโปรแกรม วิชญา เลขที่ 26.2
การพัฒนาโปรแกรม วิชญา เลขที่ 26.2
 
Tailieu.vncty.com 5333 2024
Tailieu.vncty.com   5333 2024Tailieu.vncty.com   5333 2024
Tailieu.vncty.com 5333 2024
 

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

การพัฒนาโปรแกรม
การพัฒนาโปรแกรมการพัฒนาโปรแกรม
การพัฒนาโปรแกรมPOWPISUT
 
โปรแกรมย่อยและฟังชั่นมาตรฐาน ม.6 1
โปรแกรมย่อยและฟังชั่นมาตรฐาน ม.6 1โปรแกรมย่อยและฟังชั่นมาตรฐาน ม.6 1
โปรแกรมย่อยและฟังชั่นมาตรฐาน ม.6 1Little Tukta Lita
 
C programs
C programsC programs
C programsMinu S
 
All important c programby makhan kumbhkar
All important c programby makhan kumbhkarAll important c programby makhan kumbhkar
All important c programby makhan kumbhkarsandeep kumbhkar
 
programs on arrays.pdf
programs on arrays.pdfprograms on arrays.pdf
programs on arrays.pdfsowmya koneru
 
Write a program to check a given number is prime or not
Write a program to check a given number is prime or notWrite a program to check a given number is prime or not
Write a program to check a given number is prime or notaluavi
 
Cs291 assignment solution
Cs291 assignment solutionCs291 assignment solution
Cs291 assignment solutionKuntal Bhowmick
 
Lab. Programs in C
Lab. Programs in CLab. Programs in C
Lab. Programs in CSaket Pathak
 
Chapter 8 c solution
Chapter 8 c solutionChapter 8 c solution
Chapter 8 c solutionAzhar Javed
 
ฟังก์ชั่นย่อยและโปรแกรมมาตรฐาน ม. 6 1
ฟังก์ชั่นย่อยและโปรแกรมมาตรฐาน ม. 6  1ฟังก์ชั่นย่อยและโปรแกรมมาตรฐาน ม. 6  1
ฟังก์ชั่นย่อยและโปรแกรมมาตรฐาน ม. 6 1Little Tukta Lita
 
Practical write a c program to reverse a given number
Practical write a c program to reverse a given numberPractical write a c program to reverse a given number
Practical write a c program to reverse a given numberMainak Sasmal
 
Practical write a c program to reverse a given number
Practical write a c program to reverse a given numberPractical write a c program to reverse a given number
Practical write a c program to reverse a given numberMainak Sasmal
 
Computer programming subject notes. Quick easy notes for C Programming.Cheat ...
Computer programming subject notes. Quick easy notes for C Programming.Cheat ...Computer programming subject notes. Quick easy notes for C Programming.Cheat ...
Computer programming subject notes. Quick easy notes for C Programming.Cheat ...DR B.Surendiran .
 

Ähnlich wie การพัฒนาโปรแกรม เลขที่ 26 (20)

การพัฒนาโปรแกรม
การพัฒนาโปรแกรมการพัฒนาโปรแกรม
การพัฒนาโปรแกรม
 
โปรแกรมย่อยและฟังชั่นมาตรฐาน ม.6 1
โปรแกรมย่อยและฟังชั่นมาตรฐาน ม.6 1โปรแกรมย่อยและฟังชั่นมาตรฐาน ม.6 1
โปรแกรมย่อยและฟังชั่นมาตรฐาน ม.6 1
 
C Prog - Array
C Prog - ArrayC Prog - Array
C Prog - Array
 
C lab manaual
C lab manaualC lab manaual
C lab manaual
 
L3 control
L3 controlL3 control
L3 control
 
Cpds lab
Cpds labCpds lab
Cpds lab
 
C programs
C programsC programs
C programs
 
All important c programby makhan kumbhkar
All important c programby makhan kumbhkarAll important c programby makhan kumbhkar
All important c programby makhan kumbhkar
 
programs on arrays.pdf
programs on arrays.pdfprograms on arrays.pdf
programs on arrays.pdf
 
Write a program to check a given number is prime or not
Write a program to check a given number is prime or notWrite a program to check a given number is prime or not
Write a program to check a given number is prime or not
 
C Programming Example
C Programming Example C Programming Example
C Programming Example
 
Cs291 assignment solution
Cs291 assignment solutionCs291 assignment solution
Cs291 assignment solution
 
Arrays
ArraysArrays
Arrays
 
Lab. Programs in C
Lab. Programs in CLab. Programs in C
Lab. Programs in C
 
Chapter 8 c solution
Chapter 8 c solutionChapter 8 c solution
Chapter 8 c solution
 
7 functions
7  functions7  functions
7 functions
 
ฟังก์ชั่นย่อยและโปรแกรมมาตรฐาน ม. 6 1
ฟังก์ชั่นย่อยและโปรแกรมมาตรฐาน ม. 6  1ฟังก์ชั่นย่อยและโปรแกรมมาตรฐาน ม. 6  1
ฟังก์ชั่นย่อยและโปรแกรมมาตรฐาน ม. 6 1
 
Practical write a c program to reverse a given number
Practical write a c program to reverse a given numberPractical write a c program to reverse a given number
Practical write a c program to reverse a given number
 
Practical write a c program to reverse a given number
Practical write a c program to reverse a given numberPractical write a c program to reverse a given number
Practical write a c program to reverse a given number
 
Computer programming subject notes. Quick easy notes for C Programming.Cheat ...
Computer programming subject notes. Quick easy notes for C Programming.Cheat ...Computer programming subject notes. Quick easy notes for C Programming.Cheat ...
Computer programming subject notes. Quick easy notes for C Programming.Cheat ...
 

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

  • 1.
  • 2.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9. FORTRAN) COBOL) RPG) Pascal)
  • 10. Java) C#) C++)
  • 11. fourth-generation languages: 4GLs) GL SQL) Hypertext Markup Language: HTML ) tags)
  • 12. main( ) int main ( ) { <
  • 13.
  • 14. - 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"
  • 15. - 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 ( ) -
  • 16. while while ( number target - no_of_guesses = no_of_guesses + 1 ; no_of_guesses no_of_guesses operand ) operator )
  • 17. if-else if else if if if else - return 25 return 0; return main ( ) main ( )