SlideShare a Scribd company logo
for




#include<stdio.h>

#include<conio.h>

int main()

{

    printf("Nisarat Kramsri       No.     M.     nn");

             Nisarat Kramsri      No.16   M.6/1

    int num;

    printf("nPut the number here>>>");                    Put

the number here>>>

    scanf("%d",&num);

    for (num= ; num<=      ; num++)               for



        printf( "   dn", num);

    printf("nnPress any key back to program...");

              Press any key back to program...
getch();

}




                    Flowchart




                      Nisarat Kramsri
                  No.16    M.




                                      –
               Press any key back to program...
คำสั่ง For

More Related Content

What's hot

Insertion sort
Insertion sortInsertion sort
Insertion sort
Hitesh Kumar
 
Bubble Sort
Bubble SortBubble Sort
Simulador carrera de caballos desarrollado en C++
Simulador carrera de caballos desarrollado en C++Simulador carrera de caballos desarrollado en C++
Simulador carrera de caballos desarrollado en C++
Santiago Sarmiento
 
Bcsl 033 data and file structures lab s5-2
Bcsl 033 data and file structures lab s5-2Bcsl 033 data and file structures lab s5-2
Bcsl 033 data and file structures lab s5-2
Dr. Loganathan R
 
Implementation of strassens
Implementation of  strassensImplementation of  strassens
Implementation of strassensVikash Dhal
 
Positive (2)
Positive (2)Positive (2)
Positive (2)
Ankit Dubey
 
C program to add n numbers
C program to add n numbers C program to add n numbers
C program to add n numbers
mohdshanu
 
Bcsl 033 data and file structures lab s5-3
Bcsl 033 data and file structures lab s5-3Bcsl 033 data and file structures lab s5-3
Bcsl 033 data and file structures lab s5-3
Dr. Loganathan R
 
Program in ‘C’ language to implement linear search using pointers
Program in ‘C’ language to implement linear search using pointersProgram in ‘C’ language to implement linear search using pointers
Program in ‘C’ language to implement linear search using pointers
Dr. Loganathan R
 
Project code for Project on Student information management system
Project code for Project on Student information management systemProject code for Project on Student information management system
Project code for Project on Student information management system
REHAN IJAZ
 
C & Python Introduction
C & Python IntroductionC & Python Introduction
C & Python Introduction
Spy Seat
 
Instalación de emu8086
Instalación de emu8086Instalación de emu8086
Instalación de emu8086
Alex Toapanta
 
Bcsl 033 data and file structures lab s2-3
Bcsl 033 data and file structures lab s2-3Bcsl 033 data and file structures lab s2-3
Bcsl 033 data and file structures lab s2-3
Dr. Loganathan R
 
Program persamaan kuadrat
Program persamaan kuadratProgram persamaan kuadrat
Program persamaan kuadrat
linda_rosalina
 
Program for pyramid
Program for pyramidProgram for pyramid
Program for pyramidnayakq
 

What's hot (20)

Job09
Job09Job09
Job09
 
Insertion sort
Insertion sortInsertion sort
Insertion sort
 
Bubble Sort
Bubble SortBubble Sort
Bubble Sort
 
Simulador carrera de caballos desarrollado en C++
Simulador carrera de caballos desarrollado en C++Simulador carrera de caballos desarrollado en C++
Simulador carrera de caballos desarrollado en C++
 
Bcsl 033 data and file structures lab s5-2
Bcsl 033 data and file structures lab s5-2Bcsl 033 data and file structures lab s5-2
Bcsl 033 data and file structures lab s5-2
 
Implementation of strassens
Implementation of  strassensImplementation of  strassens
Implementation of strassens
 
Positive (2)
Positive (2)Positive (2)
Positive (2)
 
C program to add n numbers
C program to add n numbers C program to add n numbers
C program to add n numbers
 
Script
ScriptScript
Script
 
Bcsl 033 data and file structures lab s5-3
Bcsl 033 data and file structures lab s5-3Bcsl 033 data and file structures lab s5-3
Bcsl 033 data and file structures lab s5-3
 
Program in ‘C’ language to implement linear search using pointers
Program in ‘C’ language to implement linear search using pointersProgram in ‘C’ language to implement linear search using pointers
Program in ‘C’ language to implement linear search using pointers
 
Permutasi pascal
Permutasi pascalPermutasi pascal
Permutasi pascal
 
Project code for Project on Student information management system
Project code for Project on Student information management systemProject code for Project on Student information management system
Project code for Project on Student information management system
 
C & Python Introduction
C & Python IntroductionC & Python Introduction
C & Python Introduction
 
Instalación de emu8086
Instalación de emu8086Instalación de emu8086
Instalación de emu8086
 
Bcsl 033 data and file structures lab s2-3
Bcsl 033 data and file structures lab s2-3Bcsl 033 data and file structures lab s2-3
Bcsl 033 data and file structures lab s2-3
 
Program persamaan kuadrat
Program persamaan kuadratProgram persamaan kuadrat
Program persamaan kuadrat
 
Vim
VimVim
Vim
 
Program for pyramid
Program for pyramidProgram for pyramid
Program for pyramid
 
Lab loop
Lab loopLab loop
Lab loop
 

Viewers also liked

ภาษาซี
ภาษาซีภาษาซี
ภาษาซีkramsri
 
คำสั่ง Switch
คำสั่ง Switchคำสั่ง Switch
คำสั่ง Switchkramsri
 
The Design Innovation Cooperative
The Design Innovation CooperativeThe Design Innovation Cooperative
The Design Innovation Cooperative
Nathaniel Eck
 
Sample template to report internet dns's performance
Sample template to report internet dns's performanceSample template to report internet dns's performance
Sample template to report internet dns's performance
Mustafa Golam
 
Grand strategi agar koperasi1
Grand strategi agar koperasi1Grand strategi agar koperasi1
Grand strategi agar koperasi1Irna Indriani
 
งานนำเสนอ1
งานนำเสนอ1งานนำเสนอ1
งานนำเสนอ1kramsri
 
คำสั่ง Switch
คำสั่ง Switchคำสั่ง Switch
คำสั่ง Switchkramsri
 
accreditation 2
 accreditation 2 accreditation 2
accreditation 2
Tota Essam
 
Linear day 17
Linear day 17Linear day 17
Linear day 17cirilah
 
คำสั่ง Do while
คำสั่ง Do whileคำสั่ง Do while
คำสั่ง Do whilekramsri
 
คำสั่ง Switch.2
คำสั่ง Switch.2คำสั่ง Switch.2
คำสั่ง Switch.2kramsri
 
คำสั่ง Do while
คำสั่ง Do whileคำสั่ง Do while
คำสั่ง Do whilekramsri
 
GPRS/EDGE Basics / knowledge sharing
GPRS/EDGE Basics /  knowledge sharingGPRS/EDGE Basics /  knowledge sharing
GPRS/EDGE Basics / knowledge sharing
Mustafa Golam
 
Aula3 sistemas lineares - parte1
Aula3   sistemas lineares - parte1Aula3   sistemas lineares - parte1
Aula3 sistemas lineares - parte1rafamaco
 
Treliça inclinada-pronto11
 Treliça inclinada-pronto11 Treliça inclinada-pronto11
Treliça inclinada-pronto11
Fer Nando
 

Viewers also liked (17)

ภาษาซี
ภาษาซีภาษาซี
ภาษาซี
 
คำสั่ง Switch
คำสั่ง Switchคำสั่ง Switch
คำสั่ง Switch
 
The Design Innovation Cooperative
The Design Innovation CooperativeThe Design Innovation Cooperative
The Design Innovation Cooperative
 
Sample template to report internet dns's performance
Sample template to report internet dns's performanceSample template to report internet dns's performance
Sample template to report internet dns's performance
 
Ekonomi koperasi
Ekonomi koperasiEkonomi koperasi
Ekonomi koperasi
 
Grand strategi agar koperasi1
Grand strategi agar koperasi1Grand strategi agar koperasi1
Grand strategi agar koperasi1
 
งานนำเสนอ1
งานนำเสนอ1งานนำเสนอ1
งานนำเสนอ1
 
คำสั่ง Switch
คำสั่ง Switchคำสั่ง Switch
คำสั่ง Switch
 
accreditation 2
 accreditation 2 accreditation 2
accreditation 2
 
Curiosites 11
Curiosites 11Curiosites 11
Curiosites 11
 
Linear day 17
Linear day 17Linear day 17
Linear day 17
 
คำสั่ง Do while
คำสั่ง Do whileคำสั่ง Do while
คำสั่ง Do while
 
คำสั่ง Switch.2
คำสั่ง Switch.2คำสั่ง Switch.2
คำสั่ง Switch.2
 
คำสั่ง Do while
คำสั่ง Do whileคำสั่ง Do while
คำสั่ง Do while
 
GPRS/EDGE Basics / knowledge sharing
GPRS/EDGE Basics /  knowledge sharingGPRS/EDGE Basics /  knowledge sharing
GPRS/EDGE Basics / knowledge sharing
 
Aula3 sistemas lineares - parte1
Aula3   sistemas lineares - parte1Aula3   sistemas lineares - parte1
Aula3 sistemas lineares - parte1
 
Treliça inclinada-pronto11
 Treliça inclinada-pronto11 Treliça inclinada-pronto11
Treliça inclinada-pronto11
 

More from kramsri

ข อสอบคอม 5 ข อส่ง
ข อสอบคอม 5 ข อส่งข อสอบคอม 5 ข อส่ง
ข อสอบคอม 5 ข อส่งkramsri
 
ข อสอบคอม #6
ข อสอบคอม #6ข อสอบคอม #6
ข อสอบคอม #6kramsri
 
คำสั่ง Switch
คำสั่ง Switchคำสั่ง Switch
คำสั่ง Switchkramsri
 
ประเม นรายงาน กล _มท__ 2 คำส__งควบค_มข__นพ__นฐานภาษาซ_ (1)
ประเม นรายงาน กล _มท__ 2 คำส__งควบค_มข__นพ__นฐานภาษาซ_ (1)ประเม นรายงาน กล _มท__ 2 คำส__งควบค_มข__นพ__นฐานภาษาซ_ (1)
ประเม นรายงาน กล _มท__ 2 คำส__งควบค_มข__นพ__นฐานภาษาซ_ (1)kramsri
 
ประเม นรายงาน กล _มท__ 2 คำส__งควบค_มข__นพ__นฐานภาษาซ_
ประเม นรายงาน กล _มท__ 2 คำส__งควบค_มข__นพ__นฐานภาษาซ_ประเม นรายงาน กล _มท__ 2 คำส__งควบค_มข__นพ__นฐานภาษาซ_
ประเม นรายงาน กล _มท__ 2 คำส__งควบค_มข__นพ__นฐานภาษาซ_kramsri
 
ความคิดเห็นเพื่อน(แบบประเมิน)
ความคิดเห็นเพื่อน(แบบประเมิน)ความคิดเห็นเพื่อน(แบบประเมิน)
ความคิดเห็นเพื่อน(แบบประเมิน)kramsri
 
ประกวดภาพถ่าย
ประกวดภาพถ่ายประกวดภาพถ่าย
ประกวดภาพถ่ายkramsri
 
ภาษาซี
ภาษาซีภาษาซี
ภาษาซีkramsri
 

More from kramsri (8)

ข อสอบคอม 5 ข อส่ง
ข อสอบคอม 5 ข อส่งข อสอบคอม 5 ข อส่ง
ข อสอบคอม 5 ข อส่ง
 
ข อสอบคอม #6
ข อสอบคอม #6ข อสอบคอม #6
ข อสอบคอม #6
 
คำสั่ง Switch
คำสั่ง Switchคำสั่ง Switch
คำสั่ง Switch
 
ประเม นรายงาน กล _มท__ 2 คำส__งควบค_มข__นพ__นฐานภาษาซ_ (1)
ประเม นรายงาน กล _มท__ 2 คำส__งควบค_มข__นพ__นฐานภาษาซ_ (1)ประเม นรายงาน กล _มท__ 2 คำส__งควบค_มข__นพ__นฐานภาษาซ_ (1)
ประเม นรายงาน กล _มท__ 2 คำส__งควบค_มข__นพ__นฐานภาษาซ_ (1)
 
ประเม นรายงาน กล _มท__ 2 คำส__งควบค_มข__นพ__นฐานภาษาซ_
ประเม นรายงาน กล _มท__ 2 คำส__งควบค_มข__นพ__นฐานภาษาซ_ประเม นรายงาน กล _มท__ 2 คำส__งควบค_มข__นพ__นฐานภาษาซ_
ประเม นรายงาน กล _มท__ 2 คำส__งควบค_มข__นพ__นฐานภาษาซ_
 
ความคิดเห็นเพื่อน(แบบประเมิน)
ความคิดเห็นเพื่อน(แบบประเมิน)ความคิดเห็นเพื่อน(แบบประเมิน)
ความคิดเห็นเพื่อน(แบบประเมิน)
 
ประกวดภาพถ่าย
ประกวดภาพถ่ายประกวดภาพถ่าย
ประกวดภาพถ่าย
 
ภาษาซี
ภาษาซีภาษาซี
ภาษาซี
 

คำสั่ง For

  • 1. for #include<stdio.h> #include<conio.h> int main() { printf("Nisarat Kramsri No. M. nn"); Nisarat Kramsri No.16 M.6/1 int num; printf("nPut the number here>>>"); Put the number here>>> scanf("%d",&num); for (num= ; num<= ; num++) for printf( " dn", num); printf("nnPress any key back to program..."); Press any key back to program...
  • 2. getch(); } Flowchart Nisarat Kramsri No.16 M. – Press any key back to program...