SlideShare une entreprise Scribd logo
1  sur  3
Télécharger pour lire hors ligne
-        ...................................................................................                                                                         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 );
        }

Contenu connexe

Tendances

ใบความรู้ที่ 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.
 

Tendances (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เสียง
 
นิเวศวิทยา
นิเวศวิทยานิเวศวิทยา
นิเวศวิทยา
 

En vedette

การเขียนคำสั่งขั้นพื้นฐาน(ภาษา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
 

En vedette (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 สารสนเทศ
 

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

Similaire à ใบความรู้เรื่องคำสั่ง 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
 
อารยธรรมอียิปต์
อารยธรรมอียิปต์ อารยธรรมอียิปต์
อารยธรรมอียิปต์
 
สภาพสมดุล
สภาพสมดุลสภาพสมดุล
สภาพสมดุล
 
สภาพสมดุล
สภาพสมดุลสภาพสมดุล
สภาพสมดุล
 

Plus de ธงชัย พาศรี

ใบงานเรื่องการคอมไพล์โปรแกรม
ใบงานเรื่องการคอมไพล์โปรแกรมใบงานเรื่องการคอมไพล์โปรแกรม
ใบงานเรื่องการคอมไพล์โปรแกรมธงชัย พาศรี
 
ใบความรู้เรื่องคำสั่ง 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)ธงชัย พาศรี
 

Plus de ธงชัย พาศรี (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)
 

Dernier

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
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
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
 
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
 
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
 
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
 
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
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfDr Vijay Vishwakarma
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
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
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 

Dernier (20)

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
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
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
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
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.
 
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
 
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
 
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.
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
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)
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 

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