SlideShare une entreprise Scribd logo
1  sur  17
Pseudocode)   Flow chart)
Machine language)
2.                  Assembly language)
3.             High-level language)
   GL:Third Generation Language)
main( )
int main ( ) { <
-                           header files )
1 #include <stdio.h>
1 #include <stdiob.h>

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

-
   scanf ("%",
&target) ;
12 scanf ("%",
&number) ;
13 scanf ("%",
-
   printf (“Enter the number
you guess “) ;
16 printf (“Too highn”) ;
17 printf (“Too lown”) ;
19 printf (“Enter the You try %d time . n” ,
23 printf (“Correct – number
you guess “) ; ) ;
no_of_guesses
-
-
    no_of_guesses = no_of_guesses + 1
;
-

   if (number > target)
16 printf (“Too
highn”) ;
17 else
 -     return
18 printf (“Too lown”)
 25 return 0;
;
http://www.thaigoodview.com
http://krusunanta.net
http://61.19.202.164/resource/courseware/problem/k
02-02.html
http://kroobee.wordpress.com

Contenu connexe

Tendances

Program for pyramid
Program for pyramidProgram for pyramid
Program for pyramidnayakq
 
C mcq practice test 1
C mcq practice test 1C mcq practice test 1
C mcq practice test 1Aman Kamboj
 
Data Structures Using C Practical File
Data Structures Using C Practical File Data Structures Using C Practical File
Data Structures Using C Practical File Rahul Chugh
 
Common problems solving using c
Common problems solving using cCommon problems solving using c
Common problems solving using cArghodeepPaul
 
ภาษาซีพื้นฐาน
ภาษาซีพื้นฐานภาษาซีพื้นฐาน
ภาษาซีพื้นฐานKrunee Thitthamon
 
Itp practical file_1-year
Itp practical file_1-yearItp practical file_1-year
Itp practical file_1-yearAMIT SINGH
 
C basics
C basicsC basics
C basicsMSc CST
 
C Prog. - Structures
C Prog. - StructuresC Prog. - Structures
C Prog. - Structuresvinay arora
 
some basic C programs with outputs
some basic C programs with outputssome basic C programs with outputs
some basic C programs with outputsKULDEEPSING PATIL
 
C Prog. - Strings (Updated)
C Prog. - Strings (Updated)C Prog. - Strings (Updated)
C Prog. - Strings (Updated)vinay arora
 
C Prog - Strings
C Prog - StringsC Prog - Strings
C Prog - Stringsvinay arora
 
Simple c program
Simple c programSimple c program
Simple c programRavi Singh
 

Tendances (20)

Program for pyramid
Program for pyramidProgram for pyramid
Program for pyramid
 
C mcq practice test 1
C mcq practice test 1C mcq practice test 1
C mcq practice test 1
 
C workshop day 6
C workshop day 6C workshop day 6
C workshop day 6
 
SaraPIC
SaraPICSaraPIC
SaraPIC
 
Data Structures Using C Practical File
Data Structures Using C Practical File Data Structures Using C Practical File
Data Structures Using C Practical File
 
programs
programsprograms
programs
 
C
CC
C
 
Lab loop
Lab loopLab loop
Lab loop
 
Shan
ShanShan
Shan
 
Common problems solving using c
Common problems solving using cCommon problems solving using c
Common problems solving using c
 
ภาษาซีพื้นฐาน
ภาษาซีพื้นฐานภาษาซีพื้นฐาน
ภาษาซีพื้นฐาน
 
Itp practical file_1-year
Itp practical file_1-yearItp practical file_1-year
Itp practical file_1-year
 
C basics
C basicsC basics
C basics
 
Grestest2
Grestest2Grestest2
Grestest2
 
C Prog. - Structures
C Prog. - StructuresC Prog. - Structures
C Prog. - Structures
 
some basic C programs with outputs
some basic C programs with outputssome basic C programs with outputs
some basic C programs with outputs
 
C Prog. - Strings (Updated)
C Prog. - Strings (Updated)C Prog. - Strings (Updated)
C Prog. - Strings (Updated)
 
Hargun
HargunHargun
Hargun
 
C Prog - Strings
C Prog - StringsC Prog - Strings
C Prog - Strings
 
Simple c program
Simple c programSimple c program
Simple c program
 

Similaire à การพัฒนาโปรแกรม

การพัฒนาโปรแกรม
การพัฒนาโปรแกรมการพัฒนาโปรแกรม
การพัฒนาโปรแกรมPOWPISUT
 
Best C Programming Solution
Best C Programming SolutionBest C Programming Solution
Best C Programming Solutionyogini sharma
 
'C' language notes (a.p)
'C' language notes (a.p)'C' language notes (a.p)
'C' language notes (a.p)Ashishchinu
 
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
 
The solution manual of c by robin
The solution manual of c by robinThe solution manual of c by robin
The solution manual of c by robinAbdullah Al Naser
 
Compiler design lab
Compiler design labCompiler design lab
Compiler design labilias ahmed
 
JAVASCRIPT PROGRAM.pdf
JAVASCRIPT PROGRAM.pdfJAVASCRIPT PROGRAM.pdf
JAVASCRIPT PROGRAM.pdfAAFREEN SHAIKH
 
C Language Programs
C Language Programs C Language Programs
C Language Programs Mansi Tyagi
 
The solution manual of programming in ansi by Robin
The solution manual of programming in ansi by RobinThe solution manual of programming in ansi by Robin
The solution manual of programming in ansi by RobinShariful Haque Robin
 
Cs291 assignment solution
Cs291 assignment solutionCs291 assignment solution
Cs291 assignment solutionKuntal Bhowmick
 
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 .
 
ภาษาซี
ภาษาซีภาษาซี
ภาษาซีkramsri
 

Similaire à การพัฒนาโปรแกรม (20)

การพัฒนาโปรแกรม
การพัฒนาโปรแกรมการพัฒนาโปรแกรม
การพัฒนาโปรแกรม
 
comp2
comp2comp2
comp2
 
Best C Programming Solution
Best C Programming SolutionBest C Programming Solution
Best C Programming Solution
 
'C' language notes (a.p)
'C' language notes (a.p)'C' language notes (a.p)
'C' language notes (a.p)
 
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
 
C Programming Exam problems & Solution by sazzad hossain
C Programming Exam problems & Solution by sazzad hossainC Programming Exam problems & Solution by sazzad hossain
C Programming Exam problems & Solution by sazzad hossain
 
The solution manual of c by robin
The solution manual of c by robinThe solution manual of c by robin
The solution manual of c by robin
 
Compiler design lab
Compiler design labCompiler design lab
Compiler design lab
 
JAVASCRIPT PROGRAM.pdf
JAVASCRIPT PROGRAM.pdfJAVASCRIPT PROGRAM.pdf
JAVASCRIPT PROGRAM.pdf
 
C Language Programs
C Language Programs C Language Programs
C Language Programs
 
The solution manual of programming in ansi by Robin
The solution manual of programming in ansi by RobinThe solution manual of programming in ansi by Robin
The solution manual of programming in ansi by Robin
 
C lab manaual
C lab manaualC lab manaual
C lab manaual
 
Cs291 assignment solution
Cs291 assignment solutionCs291 assignment solution
Cs291 assignment solution
 
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 ...
 
C Programming
C ProgrammingC Programming
C Programming
 
Cpds lab
Cpds labCpds lab
Cpds lab
 
C lab
C labC lab
C lab
 
ภาษาซี
ภาษาซีภาษาซี
ภาษาซี
 
C programms
C programmsC programms
C programms
 

การพัฒนาโปรแกรม