SlideShare a Scribd company logo
-        ...................................................................................                                                                         19                 2553

                                                                                                                                               F

                                                                                                                   F                   printf()    scanf()

                    printf() F F
                     F      F          F                                                                                                               F        F
                        F      F printf()
         printf(control string,argument list);
              control string                                                                F   F                   (format code)                                    (control code)
             F F F                                                                         (") F argument list                          F                                     F
                                                                                       F              F       F 1 F F F             F                                           F (,)
                                                                              (format code)                                   F                                      F                  F
     F                                                                                           F                                F       F                         printf()          F
               %              F                                                                     (conversion code)                 F



                                                                                                    F
    %c                                        F                                             F                              1(single character)
    %d , %i                       F                                                     F                               (integer int ) 1
    %e , %E                                       F                                                             (floating point ,float)      e F 2.15e+2                    F 215
    %f                                                        F           F          float                  double
    %g , %G                                                       F        F float
    %h                                    F                               short integer
    %o( )                                                             F     integer
    %x , %X                                                       F         integer                                        (%x                     F       %X                F      )
                                                                                                                                                                                    F
    %s                                                F                      F
    %u                                    F                                                                 (integer           int )       F
    %%                                                    F                                             %
    %p                                F                                       address                                  F        F
-       ...................................................................................                                                                                                                                             19                           2553

                         scanf() F                               F
                          F             F        F                                                       F                                   F F F                                    F           F                             F                        F
F                                                        F                                                                               F
            scanf(control string ,variable list);
            control string                                                                                               F                                    F                                                   F         F
               F                            F                        F                               F                                                F                       F           F                                                      F                   F

            variable list                                                                                                        F                F                                                           F                                      F
             F                                                                                                               F                                    F                                                                 F
        F                                                                    F                               F                                F                                                       F (,)                                                                     F
                   F              F F            F     F                                                                                                                  F                   F                                         &                    F
        F            F   (string) F
            scanf("%d %f %s",&i1,&f1,word);
                F F                F3 F     F                                                                                                                                                                          F                F
          F            F                  i1 , f1 word
            F                   F       F      F         F                                                                                                                                               enter                                                   F
              F           F           F   F scanf()

                                                                                                                                                                                  F
                     %c                                                                      F                                       ( character)
                     %d                                                              F
                     %e                                                                      F                                 ( floating point)
                   %f %lf                                                                                                 float double
                     %g                                      F           F                                           float
                     %h                                                              F                                 short integer
                     %l                                                          F                                      integer             8                                     10                                  16
                     %o                                                              F                                  integer           8 F
                     %u                                                                  F                              unsigned integer                                          10 F
                     %x                                                              F                                  integer           16 F
                     %s                                                                          F                      F        (string)
                                                     F                                                           F                   F                    F           F                                                FF
-      ...................................................................................               19   2553


                                                                                                 F
F                                 F                                          printf()                F   F

                     1

    #include <stdio.h>
    main()
    {
    printf( nWelcome. This Programn );
    printf( This is test write C programming );
    printf( by student name suwitn );
    printf( thank you );
    }




                      2

        #include <stdio.h>
        main()
        {
               int a,b,c;
               int total = 0;
               a = 10;
               b = 20;
               c = 15;
               printf( This is a+b+c = %d n ,a+b+c);
               printf( End );
        }

More Related Content

What's hot

ใบความรู้ที่ 6-5 ฟังก์ชัน If, If-Else
ใบความรู้ที่ 6-5 ฟังก์ชัน If, If-Elseใบความรู้ที่ 6-5 ฟังก์ชัน If, If-Else
ใบความรู้ที่ 6-5 ฟังก์ชัน If, If-Else
Nattapon
 
Index with Word 2007
Index with Word 2007Index with Word 2007
Index with Word 2007
Boonlert Aroonpiboon
 
1 โลกและการเปลี่ยนแปลง
1 โลกและการเปลี่ยนแปลง1 โลกและการเปลี่ยนแปลง
1 โลกและการเปลี่ยนแปลง
muang82
 
07การเคลื่อนที่แบบหมุน
07การเคลื่อนที่แบบหมุน07การเคลื่อนที่แบบหมุน
07การเคลื่อนที่แบบหมุน
Doc Edu
 
สร้างสรรค์ผลงานด้วยโปรแกรม Adobe Photoshop CS3 ที่มา http://www.skr.ac.th/~...
สร้างสรรค์ผลงานด้วยโปรแกรม  Adobe  Photoshop CS3 ที่มา http://www.skr.ac.th/~...สร้างสรรค์ผลงานด้วยโปรแกรม  Adobe  Photoshop CS3 ที่มา http://www.skr.ac.th/~...
สร้างสรรค์ผลงานด้วยโปรแกรม Adobe Photoshop CS3 ที่มา http://www.skr.ac.th/~...
เชาวลักษณ์ ชาวงษ์
 
นิเวศวิทยา(Hand out)
นิเวศวิทยา(Hand out)นิเวศวิทยา(Hand out)
นิเวศวิทยา(Hand out)
Thanyamon Chat.
 
08สภาพสมดุล
08สภาพสมดุล08สภาพสมดุล
08สภาพสมดุล
Doc Edu
 
2553 13-performance
2553 13-performance2553 13-performance
2553 13-performance
ps-most
 
06โมเมนตัมและการดล
06โมเมนตัมและการดล06โมเมนตัมและการดล
06โมเมนตัมและการดล
Doc Edu
 
11คลื่นกล
11คลื่นกล11คลื่นกล
11คลื่นกล
Doc Edu
 
ธรรมชาติของสิ่งมีชีวิต
ธรรมชาติของสิ่งมีชีวิตธรรมชาติของสิ่งมีชีวิต
ธรรมชาติของสิ่งมีชีวิต
Thanyamon Chat.
 
20ฟิสิกส์นิวเคลียร์
20ฟิสิกส์นิวเคลียร์20ฟิสิกส์นิวเคลียร์
20ฟิสิกส์นิวเคลียร์
Doc Edu
 
บทที่ 6 1 ฟังก์ชัน printf scanf [slide]
บทที่ 6 1 ฟังก์ชัน printf scanf [slide]บทที่ 6 1 ฟังก์ชัน printf scanf [slide]
บทที่ 6 1 ฟังก์ชัน printf scanf [slide]
Nattapon
 
13 แสง
13 แสง13 แสง
13 แสง
topofzeed
 
12เสียง
12เสียง12เสียง
12เสียง
Doc Edu
 
นิเวศวิทยา
นิเวศวิทยานิเวศวิทยา
นิเวศวิทยา
Thanyamon Chat.
 

What's hot (16)

ใบความรู้ที่ 6-5 ฟังก์ชัน If, If-Else
ใบความรู้ที่ 6-5 ฟังก์ชัน If, If-Elseใบความรู้ที่ 6-5 ฟังก์ชัน If, If-Else
ใบความรู้ที่ 6-5 ฟังก์ชัน If, If-Else
 
Index with Word 2007
Index with Word 2007Index with Word 2007
Index with Word 2007
 
1 โลกและการเปลี่ยนแปลง
1 โลกและการเปลี่ยนแปลง1 โลกและการเปลี่ยนแปลง
1 โลกและการเปลี่ยนแปลง
 
07การเคลื่อนที่แบบหมุน
07การเคลื่อนที่แบบหมุน07การเคลื่อนที่แบบหมุน
07การเคลื่อนที่แบบหมุน
 
สร้างสรรค์ผลงานด้วยโปรแกรม Adobe Photoshop CS3 ที่มา http://www.skr.ac.th/~...
สร้างสรรค์ผลงานด้วยโปรแกรม  Adobe  Photoshop CS3 ที่มา http://www.skr.ac.th/~...สร้างสรรค์ผลงานด้วยโปรแกรม  Adobe  Photoshop CS3 ที่มา http://www.skr.ac.th/~...
สร้างสรรค์ผลงานด้วยโปรแกรม Adobe Photoshop CS3 ที่มา http://www.skr.ac.th/~...
 
นิเวศวิทยา(Hand out)
นิเวศวิทยา(Hand out)นิเวศวิทยา(Hand out)
นิเวศวิทยา(Hand out)
 
08สภาพสมดุล
08สภาพสมดุล08สภาพสมดุล
08สภาพสมดุล
 
2553 13-performance
2553 13-performance2553 13-performance
2553 13-performance
 
06โมเมนตัมและการดล
06โมเมนตัมและการดล06โมเมนตัมและการดล
06โมเมนตัมและการดล
 
11คลื่นกล
11คลื่นกล11คลื่นกล
11คลื่นกล
 
ธรรมชาติของสิ่งมีชีวิต
ธรรมชาติของสิ่งมีชีวิตธรรมชาติของสิ่งมีชีวิต
ธรรมชาติของสิ่งมีชีวิต
 
20ฟิสิกส์นิวเคลียร์
20ฟิสิกส์นิวเคลียร์20ฟิสิกส์นิวเคลียร์
20ฟิสิกส์นิวเคลียร์
 
บทที่ 6 1 ฟังก์ชัน printf scanf [slide]
บทที่ 6 1 ฟังก์ชัน printf scanf [slide]บทที่ 6 1 ฟังก์ชัน printf scanf [slide]
บทที่ 6 1 ฟังก์ชัน printf scanf [slide]
 
13 แสง
13 แสง13 แสง
13 แสง
 
12เสียง
12เสียง12เสียง
12เสียง
 
นิเวศวิทยา
นิเวศวิทยานิเวศวิทยา
นิเวศวิทยา
 

Viewers also liked

การเขียนคำสั่งขั้นพื้นฐาน(ภาษาC)
การเขียนคำสั่งขั้นพื้นฐาน(ภาษาC)การเขียนคำสั่งขั้นพื้นฐาน(ภาษาC)
การเขียนคำสั่งขั้นพื้นฐาน(ภาษาC)
Visaitus Palasak
 
การเขียนคำสั่งควบคุมขั้นพื้นฐาน
การเขียนคำสั่งควบคุมขั้นพื้นฐานการเขียนคำสั่งควบคุมขั้นพื้นฐาน
การเขียนคำสั่งควบคุมขั้นพื้นฐานNookky Anapat
 
รู้จักกับภาษาจาวา
รู้จักกับภาษาจาวารู้จักกับภาษาจาวา
รู้จักกับภาษาจาวา
Augkun Kanchanapisitkun
 
PHP พื้นฐาน 1
PHP พื้นฐาน 1PHP พื้นฐาน 1
Introduce
IntroduceIntroduce
เทคโนโลยีสารสนเทศ
เทคโนโลยีสารสนเทศเทคโนโลยีสารสนเทศ
เทคโนโลยีสารสนเทศ
nut jpt
 
การสร้างเว็บไซต์บนโฮสจำลอง
การสร้างเว็บไซต์บนโฮสจำลองการสร้างเว็บไซต์บนโฮสจำลอง
การสร้างเว็บไซต์บนโฮสจำลอง
manit akkhachat
 
เทคโนโลยีสารสนเทศ..
เทคโนโลยีสารสนเทศ..เทคโนโลยีสารสนเทศ..
เทคโนโลยีสารสนเทศ..
noppakao raumros
 
คำสั่ง Sql เบื้องต้น(create db)
คำสั่ง Sql เบื้องต้น(create db)คำสั่ง Sql เบื้องต้น(create db)
คำสั่ง Sql เบื้องต้น(create db)
Nattipong Siangyen
 
ข้อมูล สารสนเทศ และความรู้
ข้อมูล สารสนเทศ และความรู้ข้อมูล สารสนเทศ และความรู้
ข้อมูล สารสนเทศ และความรู้
Saipanyarangsit School
 
ภาษาซีเบื้องต้น
ภาษาซีเบื้องต้นภาษาซีเบื้องต้น
ภาษาซีเบื้องต้น
สมใจ สีดาจันทร์
 
การเขียนคำสั่งควบคุมขั้นพื้นฐาน
การเขียนคำสั่งควบคุมขั้นพื้นฐานการเขียนคำสั่งควบคุมขั้นพื้นฐาน
การเขียนคำสั่งควบคุมขั้นพื้นฐานKEk YourJust'one
 
อ้างอิง
อ้างอิงอ้างอิง
อ้างอิง
Nattipong Siangyen
 
ภาษาซี
ภาษาซีภาษาซี
ภาษาซี
kramsri
 
การเพิ่ม Pdf ใน wordpress
การเพิ่ม Pdf ใน wordpressการเพิ่ม Pdf ใน wordpress
การเพิ่ม Pdf ใน wordpress
pantiluck
 
การใช้คอมพิวเตอร์สร้างสรรค์
การใช้คอมพิวเตอร์สร้างสรรค์การใช้คอมพิวเตอร์สร้างสรรค์
การใช้คอมพิวเตอร์สร้างสรรค์
A'Aungkana AP
 
การใช้คอมพิวเตอร์ช่วยสร้างชิ้นงานอย่างมีจิตสำนึก
การใช้คอมพิวเตอร์ช่วยสร้างชิ้นงานอย่างมีจิตสำนึกการใช้คอมพิวเตอร์ช่วยสร้างชิ้นงานอย่างมีจิตสำนึก
การใช้คอมพิวเตอร์ช่วยสร้างชิ้นงานอย่างมีจิตสำนึก
Beerii Prasamon
 
บทที่ 2 ตัวแปร
บทที่ 2 ตัวแปรบทที่ 2 ตัวแปร
บทที่ 2 ตัวแปร
Komkai Pawuttanon
 
บทที่ 1 สารสนเทศ
บทที่ 1 สารสนเทศบทที่ 1 สารสนเทศ
บทที่ 1 สารสนเทศ
Pa'rig Prig
 

Viewers also liked (20)

การเขียนคำสั่งขั้นพื้นฐาน(ภาษาC)
การเขียนคำสั่งขั้นพื้นฐาน(ภาษาC)การเขียนคำสั่งขั้นพื้นฐาน(ภาษาC)
การเขียนคำสั่งขั้นพื้นฐาน(ภาษาC)
 
Unit13
Unit13Unit13
Unit13
 
การเขียนคำสั่งควบคุมขั้นพื้นฐาน
การเขียนคำสั่งควบคุมขั้นพื้นฐานการเขียนคำสั่งควบคุมขั้นพื้นฐาน
การเขียนคำสั่งควบคุมขั้นพื้นฐาน
 
รู้จักกับภาษาจาวา
รู้จักกับภาษาจาวารู้จักกับภาษาจาวา
รู้จักกับภาษาจาวา
 
PHP พื้นฐาน 1
PHP พื้นฐาน 1PHP พื้นฐาน 1
PHP พื้นฐาน 1
 
Introduce
IntroduceIntroduce
Introduce
 
เทคโนโลยีสารสนเทศ
เทคโนโลยีสารสนเทศเทคโนโลยีสารสนเทศ
เทคโนโลยีสารสนเทศ
 
การสร้างเว็บไซต์บนโฮสจำลอง
การสร้างเว็บไซต์บนโฮสจำลองการสร้างเว็บไซต์บนโฮสจำลอง
การสร้างเว็บไซต์บนโฮสจำลอง
 
เทคโนโลยีสารสนเทศ..
เทคโนโลยีสารสนเทศ..เทคโนโลยีสารสนเทศ..
เทคโนโลยีสารสนเทศ..
 
คำสั่ง Sql เบื้องต้น(create db)
คำสั่ง Sql เบื้องต้น(create db)คำสั่ง Sql เบื้องต้น(create db)
คำสั่ง Sql เบื้องต้น(create db)
 
ข้อมูล สารสนเทศ และความรู้
ข้อมูล สารสนเทศ และความรู้ข้อมูล สารสนเทศ และความรู้
ข้อมูล สารสนเทศ และความรู้
 
ภาษาซีเบื้องต้น
ภาษาซีเบื้องต้นภาษาซีเบื้องต้น
ภาษาซีเบื้องต้น
 
การเขียนคำสั่งควบคุมขั้นพื้นฐาน
การเขียนคำสั่งควบคุมขั้นพื้นฐานการเขียนคำสั่งควบคุมขั้นพื้นฐาน
การเขียนคำสั่งควบคุมขั้นพื้นฐาน
 
อ้างอิง
อ้างอิงอ้างอิง
อ้างอิง
 
ภาษาซี
ภาษาซีภาษาซี
ภาษาซี
 
การเพิ่ม Pdf ใน wordpress
การเพิ่ม Pdf ใน wordpressการเพิ่ม Pdf ใน wordpress
การเพิ่ม Pdf ใน wordpress
 
การใช้คอมพิวเตอร์สร้างสรรค์
การใช้คอมพิวเตอร์สร้างสรรค์การใช้คอมพิวเตอร์สร้างสรรค์
การใช้คอมพิวเตอร์สร้างสรรค์
 
การใช้คอมพิวเตอร์ช่วยสร้างชิ้นงานอย่างมีจิตสำนึก
การใช้คอมพิวเตอร์ช่วยสร้างชิ้นงานอย่างมีจิตสำนึกการใช้คอมพิวเตอร์ช่วยสร้างชิ้นงานอย่างมีจิตสำนึก
การใช้คอมพิวเตอร์ช่วยสร้างชิ้นงานอย่างมีจิตสำนึก
 
บทที่ 2 ตัวแปร
บทที่ 2 ตัวแปรบทที่ 2 ตัวแปร
บทที่ 2 ตัวแปร
 
บทที่ 1 สารสนเทศ
บทที่ 1 สารสนเทศบทที่ 1 สารสนเทศ
บทที่ 1 สารสนเทศ
 

Similar to ใบความรู้เรื่องคำสั่ง Printf scanf

Microsoft word เกมบิงโกสัตว์
Microsoft word   เกมบิงโกสัตว์Microsoft word   เกมบิงโกสัตว์
Microsoft word เกมบิงโกสัตว์
Thanyamon Chat.
 
7 การเคลื่อนที่แบบหมุน
7 การเคลื่อนที่แบบหมุน7 การเคลื่อนที่แบบหมุน
7 การเคลื่อนที่แบบหมุน
topofzeed
 
หน่วยที่ 1 บทนำ
หน่วยที่ 1 บทนำหน่วยที่ 1 บทนำ
หน่วยที่ 1 บทนำ
krusarawut
 
Lesson 1 Intro
Lesson 1 IntroLesson 1 Intro
Lesson 1 Intro
krusarawut
 
20 ฟิสิกส์นิวเคลียร์
20 ฟิสิกส์นิวเคลียร์20 ฟิสิกส์นิวเคลียร์
20 ฟิสิกส์นิวเคลียร์
topofzeed
 
ตรรกศาสตร์เบื้องต้น
ตรรกศาสตร์เบื้องต้นตรรกศาสตร์เบื้องต้น
ตรรกศาสตร์เบื้องต้น
wanwilai
 
industrial Technology Assistance Program: iTAP
industrial Technology Assistance Program: iTAPindustrial Technology Assistance Program: iTAP
industrial Technology Assistance Program: iTAP
NstdaAcademy Nstda
 
เขียนโปรแกรมใช้คำสั่ง Printf scanf
เขียนโปรแกรมใช้คำสั่ง  Printf scanfเขียนโปรแกรมใช้คำสั่ง  Printf scanf
เขียนโปรแกรมใช้คำสั่ง Printf scanf
ธงชัย พาศรี
 
Brief create list-km090354
Brief create list-km090354Brief create list-km090354
Brief create list-km090354
Gritiga Soonthorn
 
ใบความรู้ที่ 6-6 ฟังก์ชัน Loop
ใบความรู้ที่ 6-6 ฟังก์ชัน Loopใบความรู้ที่ 6-6 ฟังก์ชัน Loop
ใบความรู้ที่ 6-6 ฟังก์ชัน Loop
Nattapon
 
รูปแบบหนังสือราชการ
รูปแบบหนังสือราชการ รูปแบบหนังสือราชการ
รูปแบบหนังสือราชการ
Panuwat Noonkong
 
Ch11 International Finance
Ch11 International FinanceCh11 International Finance
Ch11 International Finance
maovkh
 
Pdf114
Pdf114Pdf114
Pdf114
kuraesci1
 
3 แรง มวล และกฎการเคลื่อนที่
3 แรง มวล และกฎการเคลื่อนที่3 แรง มวล และกฎการเคลื่อนที่
3 แรง มวล และกฎการเคลื่อนที่
topofzeed
 
3 แรง มวล และกฎการเคลื่อนที่
3 แรง มวล และกฎการเคลื่อนที่3 แรง มวล และกฎการเคลื่อนที่
3 แรง มวล และกฎการเคลื่อนที่
topofzeed
 
03แรง มวลและกฏการเคลื่อนที่
03แรง มวลและกฏการเคลื่อนที่03แรง มวลและกฏการเคลื่อนที่
03แรง มวลและกฏการเคลื่อนที่
Doc Edu
 
1
11
Himayah_Icecream
Himayah_IcecreamHimayah_Icecream
Himayah_Icecream
Anis Toleb
 
อารยธรรมอียิปต์
อารยธรรมอียิปต์ อารยธรรมอียิปต์
อารยธรรมอียิปต์
Pikcolo Pik
 
สภาพสมดุล
สภาพสมดุลสภาพสมดุล
สภาพสมดุล
thanakit553
 

Similar to ใบความรู้เรื่องคำสั่ง Printf scanf (20)

Microsoft word เกมบิงโกสัตว์
Microsoft word   เกมบิงโกสัตว์Microsoft word   เกมบิงโกสัตว์
Microsoft word เกมบิงโกสัตว์
 
7 การเคลื่อนที่แบบหมุน
7 การเคลื่อนที่แบบหมุน7 การเคลื่อนที่แบบหมุน
7 การเคลื่อนที่แบบหมุน
 
หน่วยที่ 1 บทนำ
หน่วยที่ 1 บทนำหน่วยที่ 1 บทนำ
หน่วยที่ 1 บทนำ
 
Lesson 1 Intro
Lesson 1 IntroLesson 1 Intro
Lesson 1 Intro
 
20 ฟิสิกส์นิวเคลียร์
20 ฟิสิกส์นิวเคลียร์20 ฟิสิกส์นิวเคลียร์
20 ฟิสิกส์นิวเคลียร์
 
ตรรกศาสตร์เบื้องต้น
ตรรกศาสตร์เบื้องต้นตรรกศาสตร์เบื้องต้น
ตรรกศาสตร์เบื้องต้น
 
industrial Technology Assistance Program: iTAP
industrial Technology Assistance Program: iTAPindustrial Technology Assistance Program: iTAP
industrial Technology Assistance Program: iTAP
 
เขียนโปรแกรมใช้คำสั่ง Printf scanf
เขียนโปรแกรมใช้คำสั่ง  Printf scanfเขียนโปรแกรมใช้คำสั่ง  Printf scanf
เขียนโปรแกรมใช้คำสั่ง Printf scanf
 
Brief create list-km090354
Brief create list-km090354Brief create list-km090354
Brief create list-km090354
 
ใบความรู้ที่ 6-6 ฟังก์ชัน Loop
ใบความรู้ที่ 6-6 ฟังก์ชัน Loopใบความรู้ที่ 6-6 ฟังก์ชัน Loop
ใบความรู้ที่ 6-6 ฟังก์ชัน Loop
 
รูปแบบหนังสือราชการ
รูปแบบหนังสือราชการ รูปแบบหนังสือราชการ
รูปแบบหนังสือราชการ
 
Ch11 International Finance
Ch11 International FinanceCh11 International Finance
Ch11 International Finance
 
Pdf114
Pdf114Pdf114
Pdf114
 
3 แรง มวล และกฎการเคลื่อนที่
3 แรง มวล และกฎการเคลื่อนที่3 แรง มวล และกฎการเคลื่อนที่
3 แรง มวล และกฎการเคลื่อนที่
 
3 แรง มวล และกฎการเคลื่อนที่
3 แรง มวล และกฎการเคลื่อนที่3 แรง มวล และกฎการเคลื่อนที่
3 แรง มวล และกฎการเคลื่อนที่
 
03แรง มวลและกฏการเคลื่อนที่
03แรง มวลและกฏการเคลื่อนที่03แรง มวลและกฏการเคลื่อนที่
03แรง มวลและกฏการเคลื่อนที่
 
1
11
1
 
Himayah_Icecream
Himayah_IcecreamHimayah_Icecream
Himayah_Icecream
 
อารยธรรมอียิปต์
อารยธรรมอียิปต์ อารยธรรมอียิปต์
อารยธรรมอียิปต์
 
สภาพสมดุล
สภาพสมดุลสภาพสมดุล
สภาพสมดุล
 

More from ธงชัย พาศรี

ใบงานเรื่องการคอมไพล์โปรแกรม
ใบงานเรื่องการคอมไพล์โปรแกรมใบงานเรื่องการคอมไพล์โปรแกรม
ใบงานเรื่องการคอมไพล์โปรแกรม
ธงชัย พาศรี
 
ใบความรู้เรื่องคำสั่ง Printf scanf
ใบความรู้เรื่องคำสั่ง Printf scanfใบความรู้เรื่องคำสั่ง Printf scanf
ใบความรู้เรื่องคำสั่ง Printf scanf
ธงชัย พาศรี
 
การวิเคราะห์ปัญหา(080653)
การวิเคราะห์ปัญหา(080653)การวิเคราะห์ปัญหา(080653)
การวิเคราะห์ปัญหา(080653)ธงชัย พาศรี
 
การเขียนผังงานแบบทำซ้ำ (080753)
การเขียนผังงานแบบทำซ้ำ  (080753)การเขียนผังงานแบบทำซ้ำ  (080753)
การเขียนผังงานแบบทำซ้ำ (080753)ธงชัย พาศรี
 
การเขียนผังงานแบบทางเลือก (050753)
การเขียนผังงานแบบทางเลือก  (050753)การเขียนผังงานแบบทางเลือก  (050753)
การเขียนผังงานแบบทางเลือก (050753)ธงชัย พาศรี
 
การเขียนผังงานแบบทางเลือก (010753)
การเขียนผังงานแบบทางเลือก  (010753)การเขียนผังงานแบบทางเลือก  (010753)
การเขียนผังงานแบบทางเลือก (010753)ธงชัย พาศรี
 
การเขียนผังงานแบบทางเลือก (050753)
การเขียนผังงานแบบทางเลือก  (050753)การเขียนผังงานแบบทางเลือก  (050753)
การเขียนผังงานแบบทางเลือก (050753)ธงชัย พาศรี
 
การเขียนผังงานแบบทางเลือก (010753)
การเขียนผังงานแบบทางเลือก  (010753)การเขียนผังงานแบบทางเลือก  (010753)
การเขียนผังงานแบบทางเลือก (010753)ธงชัย พาศรี
 

More from ธงชัย พาศรี (11)

ใบงานเรื่องการคอมไพล์โปรแกรม
ใบงานเรื่องการคอมไพล์โปรแกรมใบงานเรื่องการคอมไพล์โปรแกรม
ใบงานเรื่องการคอมไพล์โปรแกรม
 
ใบความรู้เรื่องคำสั่ง Printf scanf
ใบความรู้เรื่องคำสั่ง Printf scanfใบความรู้เรื่องคำสั่ง Printf scanf
ใบความรู้เรื่องคำสั่ง Printf scanf
 
การวิเคราะห์ปัญหา(080653)
การวิเคราะห์ปัญหา(080653)การวิเคราะห์ปัญหา(080653)
การวิเคราะห์ปัญหา(080653)
 
การเขียนผังงานแบบทำซ้ำ (080753)
การเขียนผังงานแบบทำซ้ำ  (080753)การเขียนผังงานแบบทำซ้ำ  (080753)
การเขียนผังงานแบบทำซ้ำ (080753)
 
การเขียนผังงานแบบทางเลือก (050753)
การเขียนผังงานแบบทางเลือก  (050753)การเขียนผังงานแบบทางเลือก  (050753)
การเขียนผังงานแบบทางเลือก (050753)
 
การเขียนผังงานแบบทางเลือก (010753)
การเขียนผังงานแบบทางเลือก  (010753)การเขียนผังงานแบบทางเลือก  (010753)
การเขียนผังงานแบบทางเลือก (010753)
 
การเขียนผังงาน (290653)
การเขียนผังงาน (290653)การเขียนผังงาน (290653)
การเขียนผังงาน (290653)
 
การเขียนผังงาน (280653)
การเขียนผังงาน (280653)การเขียนผังงาน (280653)
การเขียนผังงาน (280653)
 
การเขียนผังงานแบบทางเลือก (050753)
การเขียนผังงานแบบทางเลือก  (050753)การเขียนผังงานแบบทางเลือก  (050753)
การเขียนผังงานแบบทางเลือก (050753)
 
การเขียนผังงานแบบทางเลือก (010753)
การเขียนผังงานแบบทางเลือก  (010753)การเขียนผังงานแบบทางเลือก  (010753)
การเขียนผังงานแบบทางเลือก (010753)
 
การเขียนผังงาน (290653)
การเขียนผังงาน (290653)การเขียนผังงาน (290653)
การเขียนผังงาน (290653)
 

Recently uploaded

Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Leena Ghag-Sakpal
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) CurriculumPhilippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
MJDuyan
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Fajar Baskoro
 
Solutons Maths Escape Room Spatial .pptx
Solutons Maths Escape Room Spatial .pptxSolutons Maths Escape Room Spatial .pptx
Solutons Maths Escape Room Spatial .pptx
spdendr
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
GeorgeMilliken2
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
adhitya5119
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
Nguyen Thanh Tu Collection
 
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
สมใจ จันสุกสี
 
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
Nguyen Thanh Tu Collection
 
math operations ued in python and all used
math operations ued in python and all usedmath operations ued in python and all used
math operations ued in python and all used
ssuser13ffe4
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
Celine George
 
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
EduSkills OECD
 
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching AptitudeUGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
S. Raj Kumar
 
Constructing Your Course Container for Effective Communication
Constructing Your Course Container for Effective CommunicationConstructing Your Course Container for Effective Communication
Constructing Your Course Container for Effective Communication
Chevonnese Chevers Whyte, MBA, B.Sc.
 
Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...
PsychoTech Services
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
TechSoup
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 

Recently uploaded (20)

Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) CurriculumPhilippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
 
Solutons Maths Escape Room Spatial .pptx
Solutons Maths Escape Room Spatial .pptxSolutons Maths Escape Room Spatial .pptx
Solutons Maths Escape Room Spatial .pptx
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
 
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
 
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
 
math operations ued in python and all used
math operations ued in python and all usedmath operations ued in python and all used
math operations ued in python and all used
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
 
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
 
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching AptitudeUGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
 
Constructing Your Course Container for Effective Communication
Constructing Your Course Container for Effective CommunicationConstructing Your Course Container for Effective Communication
Constructing Your Course Container for Effective Communication
 
Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
 

ใบความรู้เรื่องคำสั่ง Printf scanf

  • 1. - ................................................................................... 19 2553 F F printf() scanf() printf() F F F F F F F F F printf() printf(control string,argument list); control string F F (format code) (control code) F F F (") F argument list F F F F F 1 F F F F F (,) (format code) F F F F F F F printf() F % F (conversion code) F F %c F F 1(single character) %d , %i F F (integer int ) 1 %e , %E F (floating point ,float) e F 2.15e+2 F 215 %f F F float double %g , %G F F float %h F short integer %o( ) F integer %x , %X F integer (%x F %X F ) F %s F F %u F (integer int ) F %% F % %p F address F F
  • 2. - ................................................................................... 19 2553 scanf() F F F F F F F F F F F F F F F F scanf(control string ,variable list); control string F F F F F F F F F F F F F variable list F F F F F F F F F F F F F (,) F F F F F F F F & F F F (string) F scanf("%d %f %s",&i1,&f1,word); F F F3 F F F F F F i1 , f1 word F F F F F enter F F F F F scanf() F %c F ( character) %d F %e F ( floating point) %f %lf float double %g F F float %h F short integer %l F integer 8 10 16 %o F integer 8 F %u F unsigned integer 10 F %x F integer 16 F %s F F (string) F F F F F FF
  • 3. - ................................................................................... 19 2553 F F F printf() F F 1 #include <stdio.h> main() { printf( nWelcome. This Programn ); printf( This is test write C programming ); printf( by student name suwitn ); printf( thank you ); } 2 #include <stdio.h> main() { int a,b,c; int total = 0; a = 10; b = 20; c = 15; printf( This is a+b+c = %d n ,a+b+c); printf( End ); }