SlideShare a Scribd company logo
1 of 3
Download to read offline
-        ...................................................................................                                                                         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-ElseNattapon
 
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-performanceps-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
 
เทคโนโลยีสารสนเทศ
เทคโนโลยีสารสนเทศเทคโนโลยีสารสนเทศ
เทคโนโลยีสารสนเทศ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
 
ภาษาซี
ภาษาซีภาษาซี
ภาษาซีkramsri
 
การเพิ่ม Pdf ใน wordpress
การเพิ่ม Pdf ใน wordpressการเพิ่ม Pdf ใน wordpress
การเพิ่ม Pdf ใน wordpresspantiluck
 
การใช้คอมพิวเตอร์สร้างสรรค์
การใช้คอมพิวเตอร์สร้างสรรค์การใช้คอมพิวเตอร์สร้างสรรค์
การใช้คอมพิวเตอร์สร้างสรรค์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 Introkrusarawut
 
20 ฟิสิกส์นิวเคลียร์
20 ฟิสิกส์นิวเคลียร์20 ฟิสิกส์นิวเคลียร์
20 ฟิสิกส์นิวเคลียร์topofzeed
 
ตรรกศาสตร์เบื้องต้น
ตรรกศาสตร์เบื้องต้นตรรกศาสตร์เบื้องต้น
ตรรกศาสตร์เบื้องต้นwanwilai
 
industrial Technology Assistance Program: iTAP
industrial Technology Assistance Program: iTAPindustrial Technology Assistance Program: iTAP
industrial Technology Assistance Program: iTAPNstdaAcademy Nstda
 
เขียนโปรแกรมใช้คำสั่ง Printf scanf
เขียนโปรแกรมใช้คำสั่ง  Printf scanfเขียนโปรแกรมใช้คำสั่ง  Printf scanf
เขียนโปรแกรมใช้คำสั่ง Printf scanfธงชัย พาศรี
 
ใบความรู้ที่ 6-6 ฟังก์ชัน Loop
ใบความรู้ที่ 6-6 ฟังก์ชัน Loopใบความรู้ที่ 6-6 ฟังก์ชัน Loop
ใบความรู้ที่ 6-6 ฟังก์ชัน LoopNattapon
 
รูปแบบหนังสือราชการ
รูปแบบหนังสือราชการ รูปแบบหนังสือราชการ
รูปแบบหนังสือราชการ Panuwat Noonkong
 
เรียนรู้ฟิสิกส์รอบสระพังทอง
เรียนรู้ฟิสิกส์รอบสระพังทองเรียนรู้ฟิสิกส์รอบสระพังทอง
เรียนรู้ฟิสิกส์รอบสระพังทองkrunok2555
 
New Role for Librarian and Knowledge Repository
New Role for Librarian and Knowledge RepositoryNew Role for Librarian and Knowledge Repository
New Role for Librarian and Knowledge RepositoryBoonlert Aroonpiboon
 
การขับถ่ายของสัตว์
การขับถ่ายของสัตว์การขับถ่ายของสัตว์
การขับถ่ายของสัตว์Thanyamon Chat.
 
Himayah_Icecream
Himayah_IcecreamHimayah_Icecream
Himayah_IcecreamAnis Toleb
 
อารยธรรมอียิปต์
อารยธรรมอียิปต์ อารยธรรมอียิปต์
อารยธรรมอียิปต์ Pikcolo Pik
 
สภาพสมดุล
สภาพสมดุลสภาพสมดุล
สภาพสมดุลthanakit553
 
สภาพสมดุล
สภาพสมดุลสภาพสมดุล
สภาพสมดุลpumarin20012
 

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
 
รูปแบบหนังสือราชการ
รูปแบบหนังสือราชการ รูปแบบหนังสือราชการ
รูปแบบหนังสือราชการ
 
Pdf114
Pdf114Pdf114
Pdf114
 
เรียนรู้ฟิสิกส์รอบสระพังทอง
เรียนรู้ฟิสิกส์รอบสระพังทองเรียนรู้ฟิสิกส์รอบสระพังทอง
เรียนรู้ฟิสิกส์รอบสระพังทอง
 
New Role for Librarian and Knowledge Repository
New Role for Librarian and Knowledge RepositoryNew Role for Librarian and Knowledge Repository
New Role for Librarian and Knowledge Repository
 
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

ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 

Recently uploaded (20)

ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 

ใบความรู้เรื่องคำสั่ง 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 ); }