SlideShare a Scribd company logo
1 of 10
Download to read offline
กF    Printf();
      Printf();
     Scanf();
     Scanf();

           ก      ก   กก
ก                          ก           F

        printf     F
        scanf          F   F       ก F         F

printf    scanf ก ก F          F stdio.h           กF   F
กF printf     scanf F F

                 #include<stdio.h>
กF            printf()
                                       printf()
printf()             ก        F
   1.            F                ก
       printf( F                      );
      F printf( Hello world );
   2.            ก
       printf(                    ก               ,   );
                                                      F
           F printf( My age is %dn , myAge);
ก
format code
    %d               ก                       (int, short, unsigned short, long, unsigned
              long
   %u               ก                           ก (unsigned short, unsigned long
   %o               ก               ก
   %x               ก               ก                        ก
   %f               ก                     (float, double, long double)
   %e               ก                        ก                  E ( e) กก (float,
              double, long double)
   %c               ก             ก 1 (char)
   %s               ก             F   (ก       กก F 1 )
   %p               ก                  F (pointer)
F
main()
{
  int i =12345;
  float x=350.875;
       printf( %dn ,i);
       printf( %fn ,x);
}
F
12345
350.875000
กF    scanf();
                        scanf();
Scanf( ) ก F           F       ก        F
 •         กF        F                    C
  ก ก                    scanf( )
 •            F    ก keyboard F         ก F
           F F              (memory address   )
          ก ก F function scanf( ) F F           F
      F (address)                 F         F
   function scanf( )
ก      F       กF         scanf();
                                        scanf();
     scanf( format string , &variable);
1. format string             Fก              ก   ก
  F
2. &variable ( ก         F        F              ก
 F )             F                    Fก F           F
&name
F ก   F      กF   scanf();
                            scanf();
F     F
 F
int month ,year;
scanf( %d %d , &month, &year);
      ก ก      F               F
int i;
float x;
scanf( %d %f ,&i,&x);
F
#include<stdio.h>
#include<conio.h>
int main()
{
  int year;
  float salary;
  clrscr();
  printf(“Insert year experience and salary : ”);
  scanf(“%d %f”,&year,&salary);
  printf(“You worked for %d years.n”,year);
  printf(“Your salary is %.2fn”,salary);
  return(0);
}

More Related Content

What's hot

9. pointer, pointer & function
9. pointer, pointer & function9. pointer, pointer & function
9. pointer, pointer & function웅식 전
 
Intro to c programming
Intro to c programmingIntro to c programming
Intro to c programmingPrabhu Govind
 
Dti2143 chap 4 control statement part 2
Dti2143 chap 4 control statement part 2Dti2143 chap 4 control statement part 2
Dti2143 chap 4 control statement part 2alish sha
 
Things to avoid in JavaScript
Things to avoid in JavaScriptThings to avoid in JavaScript
Things to avoid in JavaScriptBrian Moschel
 
Macroprocessor
MacroprocessorMacroprocessor
Macroprocessorksanthosh
 
C Language - Switch and For Loop
C Language - Switch and For LoopC Language - Switch and For Loop
C Language - Switch and For LoopSukrit Gupta
 
การพัฒนาโปรแกรม วิชญา เลขที่ 26
การพัฒนาโปรแกรม วิชญา เลขที่ 26การพัฒนาโปรแกรม วิชญา เลขที่ 26
การพัฒนาโปรแกรม วิชญา เลขที่ 26winewic199
 
การพัฒนาโปรแกรม เลขที่ 26
การพัฒนาโปรแกรม เลขที่ 26การพัฒนาโปรแกรม เลขที่ 26
การพัฒนาโปรแกรม เลขที่ 26winewic199
 
ภาษาซีพื้นฐาน
ภาษาซีพื้นฐานภาษาซีพื้นฐาน
ภาษาซีพื้นฐานKrunee Thitthamon
 
ใบความรู้ที่ 6-5 ฟังก์ชัน If, If-Else
ใบความรู้ที่ 6-5 ฟังก์ชัน If, If-Elseใบความรู้ที่ 6-5 ฟังก์ชัน If, If-Else
ใบความรู้ที่ 6-5 ฟังก์ชัน If, If-ElseNattapon
 
Stack Data Structure V1.0
Stack Data Structure V1.0Stack Data Structure V1.0
Stack Data Structure V1.0Zidny Nafan
 
Preprocessor Programming
Preprocessor ProgrammingPreprocessor Programming
Preprocessor Programminglactrious
 
Maple Code for Steepest Descent
Maple Code for Steepest DescentMaple Code for Steepest Descent
Maple Code for Steepest DescentJeremy Lane
 
Burrowing through go! the book
Burrowing through go! the bookBurrowing through go! the book
Burrowing through go! the bookVishal Ghadge
 

What's hot (20)

การกำหนดตัวแปร
การกำหนดตัวแปรการกำหนดตัวแปร
การกำหนดตัวแปร
 
9. pointer, pointer & function
9. pointer, pointer & function9. pointer, pointer & function
9. pointer, pointer & function
 
Intro to c programming
Intro to c programmingIntro to c programming
Intro to c programming
 
Dti2143 chap 4 control statement part 2
Dti2143 chap 4 control statement part 2Dti2143 chap 4 control statement part 2
Dti2143 chap 4 control statement part 2
 
StewartPlatform_cpp
StewartPlatform_cppStewartPlatform_cpp
StewartPlatform_cpp
 
Things to avoid in JavaScript
Things to avoid in JavaScriptThings to avoid in JavaScript
Things to avoid in JavaScript
 
Macroprocessor
MacroprocessorMacroprocessor
Macroprocessor
 
Applications of stack
Applications of stackApplications of stack
Applications of stack
 
week-17x
week-17xweek-17x
week-17x
 
C Language - Switch and For Loop
C Language - Switch and For LoopC Language - Switch and For Loop
C Language - Switch and For Loop
 
การพัฒนาโปรแกรม วิชญา เลขที่ 26
การพัฒนาโปรแกรม วิชญา เลขที่ 26การพัฒนาโปรแกรม วิชญา เลขที่ 26
การพัฒนาโปรแกรม วิชญา เลขที่ 26
 
การพัฒนาโปรแกรม เลขที่ 26
การพัฒนาโปรแกรม เลขที่ 26การพัฒนาโปรแกรม เลขที่ 26
การพัฒนาโปรแกรม เลขที่ 26
 
ภาษาซีพื้นฐาน
ภาษาซีพื้นฐานภาษาซีพื้นฐาน
ภาษาซีพื้นฐาน
 
ใบความรู้ที่ 6-5 ฟังก์ชัน If, If-Else
ใบความรู้ที่ 6-5 ฟังก์ชัน If, If-Elseใบความรู้ที่ 6-5 ฟังก์ชัน If, If-Else
ใบความรู้ที่ 6-5 ฟังก์ชัน If, If-Else
 
Stack Data Structure V1.0
Stack Data Structure V1.0Stack Data Structure V1.0
Stack Data Structure V1.0
 
Lab 6
Lab 6Lab 6
Lab 6
 
Preprocessor Programming
Preprocessor ProgrammingPreprocessor Programming
Preprocessor Programming
 
Maple Code for Steepest Descent
Maple Code for Steepest DescentMaple Code for Steepest Descent
Maple Code for Steepest Descent
 
Burrowing through go! the book
Burrowing through go! the bookBurrowing through go! the book
Burrowing through go! the book
 
3 flow
3 flow3 flow
3 flow
 

Viewers also liked

โปรแกรมย่อยและฟังก์ชันมาตรฐาน1
โปรแกรมย่อยและฟังก์ชันมาตรฐาน1โปรแกรมย่อยและฟังก์ชันมาตรฐาน1
โปรแกรมย่อยและฟังก์ชันมาตรฐาน1nitchakan
 
ใบความรู้ที่ 6-6 ฟังก์ชัน Loop
ใบความรู้ที่ 6-6 ฟังก์ชัน Loopใบความรู้ที่ 6-6 ฟังก์ชัน Loop
ใบความรู้ที่ 6-6 ฟังก์ชัน LoopNattapon
 
ลำดับและอนุกรม
ลำดับและอนุกรมลำดับและอนุกรม
ลำดับและอนุกรมrdschool
 
ลำดับและอนุกรม
ลำดับและอนุกรมลำดับและอนุกรม
ลำดับและอนุกรมrdschool
 
Las ม.2 ปีการศึกษา 2554
Las ม.2 ปีการศึกษา 2554Las ม.2 ปีการศึกษา 2554
Las ม.2 ปีการศึกษา 2554Aobinta In
 
ข้อสอบปลายภาค ม.2 ภาคเรียนที่ 1. 2555(ร.ร.ธัญรัตน์)ฉบับสมบูรณ์
ข้อสอบปลายภาค ม.2 ภาคเรียนที่ 1. 2555(ร.ร.ธัญรัตน์)ฉบับสมบูรณ์ข้อสอบปลายภาค ม.2 ภาคเรียนที่ 1. 2555(ร.ร.ธัญรัตน์)ฉบับสมบูรณ์
ข้อสอบปลายภาค ม.2 ภาคเรียนที่ 1. 2555(ร.ร.ธัญรัตน์)ฉบับสมบูรณ์Pattama1991
 
ฟังก์ชันเชิงเส้น
ฟังก์ชันเชิงเส้นฟังก์ชันเชิงเส้น
ฟังก์ชันเชิงเส้นY'Yuyee Raksaya
 
ตัวอย่างข้อสอบ Las คณิตศาสตร์ม.2
ตัวอย่างข้อสอบ Las คณิตศาสตร์ม.2ตัวอย่างข้อสอบ Las คณิตศาสตร์ม.2
ตัวอย่างข้อสอบ Las คณิตศาสตร์ม.2ทับทิม เจริญตา
 
O-net ม.6 คณิตศาสตร์ 56 +เฉลย
O-net ม.6 คณิตศาสตร์ 56 +เฉลยO-net ม.6 คณิตศาสตร์ 56 +เฉลย
O-net ม.6 คณิตศาสตร์ 56 +เฉลยWatcharinz
 

Viewers also liked (17)

โปรแกรมย่อยและฟังก์ชันมาตรฐาน1
โปรแกรมย่อยและฟังก์ชันมาตรฐาน1โปรแกรมย่อยและฟังก์ชันมาตรฐาน1
โปรแกรมย่อยและฟังก์ชันมาตรฐาน1
 
ใบความรู้ที่ 6-6 ฟังก์ชัน Loop
ใบความรู้ที่ 6-6 ฟังก์ชัน Loopใบความรู้ที่ 6-6 ฟังก์ชัน Loop
ใบความรู้ที่ 6-6 ฟังก์ชัน Loop
 
ลำดับและอนุกรม
ลำดับและอนุกรมลำดับและอนุกรม
ลำดับและอนุกรม
 
Test2
Test2Test2
Test2
 
59 ลำดับและอนุกรม ตอนที่1_ลำดับ
59 ลำดับและอนุกรม ตอนที่1_ลำดับ59 ลำดับและอนุกรม ตอนที่1_ลำดับ
59 ลำดับและอนุกรม ตอนที่1_ลำดับ
 
ลำดับและอนุกรม
ลำดับและอนุกรมลำดับและอนุกรม
ลำดับและอนุกรม
 
Las ม.2 ปีการศึกษา 2554
Las ม.2 ปีการศึกษา 2554Las ม.2 ปีการศึกษา 2554
Las ม.2 ปีการศึกษา 2554
 
Graph
GraphGraph
Graph
 
ข้อสอบปลายภาค ม.2 ภาคเรียนที่ 1. 2555(ร.ร.ธัญรัตน์)ฉบับสมบูรณ์
ข้อสอบปลายภาค ม.2 ภาคเรียนที่ 1. 2555(ร.ร.ธัญรัตน์)ฉบับสมบูรณ์ข้อสอบปลายภาค ม.2 ภาคเรียนที่ 1. 2555(ร.ร.ธัญรัตน์)ฉบับสมบูรณ์
ข้อสอบปลายภาค ม.2 ภาคเรียนที่ 1. 2555(ร.ร.ธัญรัตน์)ฉบับสมบูรณ์
 
ฟังก์ชันเชิงเส้น
ฟังก์ชันเชิงเส้นฟังก์ชันเชิงเส้น
ฟังก์ชันเชิงเส้น
 
ตัวอย่างข้อสอบ Las คณิตศาสตร์ม.2
ตัวอย่างข้อสอบ Las คณิตศาสตร์ม.2ตัวอย่างข้อสอบ Las คณิตศาสตร์ม.2
ตัวอย่างข้อสอบ Las คณิตศาสตร์ม.2
 
4 statistic
4 statistic4 statistic
4 statistic
 
Test of relation
Test of relationTest of relation
Test of relation
 
Final 31201 53
Final 31201 53Final 31201 53
Final 31201 53
 
รวมข้อสอบโอเน็ต คณิต ม.6
รวมข้อสอบโอเน็ต คณิต ม.6รวมข้อสอบโอเน็ต คณิต ม.6
รวมข้อสอบโอเน็ต คณิต ม.6
 
แยกเรื่อง 05-ฟังก์ชัน
แยกเรื่อง 05-ฟังก์ชันแยกเรื่อง 05-ฟังก์ชัน
แยกเรื่อง 05-ฟังก์ชัน
 
O-net ม.6 คณิตศาสตร์ 56 +เฉลย
O-net ม.6 คณิตศาสตร์ 56 +เฉลยO-net ม.6 คณิตศาสตร์ 56 +เฉลย
O-net ม.6 คณิตศาสตร์ 56 +เฉลย
 

Similar to บทที่ 6 1 ฟังก์ชัน printf scanf [slide]

เขียนโปรแกรมใช้คำสั่ง Printf scanf
เขียนโปรแกรมใช้คำสั่ง  Printf scanfเขียนโปรแกรมใช้คำสั่ง  Printf scanf
เขียนโปรแกรมใช้คำสั่ง Printf scanfธงชัย พาศรี
 
ใบความรู้เรื่องคำสั่ง Printf scanf
ใบความรู้เรื่องคำสั่ง Printf scanfใบความรู้เรื่องคำสั่ง Printf scanf
ใบความรู้เรื่องคำสั่ง Printf scanfธงชัย พาศรี
 
2 3. standard io
2 3. standard io2 3. standard io
2 3. standard io웅식 전
 
ภาษาซี
ภาษาซีภาษาซี
ภาษาซีkramsri
 
ภาษาซี
ภาษาซีภาษาซี
ภาษาซีkramsri
 
แบบฝึกทักษะการเขียนโปรแกรมภาษาซีเล่ม2
แบบฝึกทักษะการเขียนโปรแกรมภาษาซีเล่ม2แบบฝึกทักษะการเขียนโปรแกรมภาษาซีเล่ม2
แบบฝึกทักษะการเขียนโปรแกรมภาษาซีเล่ม2อานนท์ มากมี
 
โปรแกรมย่อยและฟังชั่นมาตรฐาน ม.6 1
โปรแกรมย่อยและฟังชั่นมาตรฐาน ม.6 1โปรแกรมย่อยและฟังชั่นมาตรฐาน ม.6 1
โปรแกรมย่อยและฟังชั่นมาตรฐาน ม.6 1Little Tukta Lita
 
C programs Set 4
C programs Set 4C programs Set 4
C programs Set 4Koshy Geoji
 
Concepts of C [Module 2]
Concepts of C [Module 2]Concepts of C [Module 2]
Concepts of C [Module 2]Abhishek Sinha
 
โปรแกรมย่อยและฟังชันก์มาตรฐาน
โปรแกรมย่อยและฟังชันก์มาตรฐานโปรแกรมย่อยและฟังชันก์มาตรฐาน
โปรแกรมย่อยและฟังชันก์มาตรฐานknang
 
Zoo management adri jovin
Zoo management  adri jovinZoo management  adri jovin
Zoo management adri jovinAdri Jovin
 
Unit2 jwfiles
Unit2 jwfilesUnit2 jwfiles
Unit2 jwfilesmrecedu
 
3 character strings and formatted input output
3  character strings and formatted input output3  character strings and formatted input output
3 character strings and formatted input outputMomenMostafa
 

Similar to บทที่ 6 1 ฟังก์ชัน printf scanf [slide] (20)

เขียนโปรแกรมใช้คำสั่ง Printf scanf
เขียนโปรแกรมใช้คำสั่ง  Printf scanfเขียนโปรแกรมใช้คำสั่ง  Printf scanf
เขียนโปรแกรมใช้คำสั่ง Printf scanf
 
ใบความรู้เรื่องคำสั่ง Printf scanf
ใบความรู้เรื่องคำสั่ง Printf scanfใบความรู้เรื่องคำสั่ง Printf scanf
ใบความรู้เรื่องคำสั่ง Printf scanf
 
2 3. standard io
2 3. standard io2 3. standard io
2 3. standard io
 
CHAPTER 4
CHAPTER 4CHAPTER 4
CHAPTER 4
 
ภาษาซี
ภาษาซีภาษาซี
ภาษาซี
 
ภาษาซี
ภาษาซีภาษาซี
ภาษาซี
 
Unit2 C
Unit2 C Unit2 C
Unit2 C
 
Unit2 C
Unit2 CUnit2 C
Unit2 C
 
Input And Output
 Input And Output Input And Output
Input And Output
 
แบบฝึกทักษะการเขียนโปรแกรมภาษาซีเล่ม2
แบบฝึกทักษะการเขียนโปรแกรมภาษาซีเล่ม2แบบฝึกทักษะการเขียนโปรแกรมภาษาซีเล่ม2
แบบฝึกทักษะการเขียนโปรแกรมภาษาซีเล่ม2
 
โปรแกรมย่อยและฟังชั่นมาตรฐาน ม.6 1
โปรแกรมย่อยและฟังชั่นมาตรฐาน ม.6 1โปรแกรมย่อยและฟังชั่นมาตรฐาน ม.6 1
โปรแกรมย่อยและฟังชั่นมาตรฐาน ม.6 1
 
C programs Set 4
C programs Set 4C programs Set 4
C programs Set 4
 
Concepts of C [Module 2]
Concepts of C [Module 2]Concepts of C [Module 2]
Concepts of C [Module 2]
 
โปรแกรมย่อยและฟังชันก์มาตรฐาน
โปรแกรมย่อยและฟังชันก์มาตรฐานโปรแกรมย่อยและฟังชันก์มาตรฐาน
โปรแกรมย่อยและฟังชันก์มาตรฐาน
 
Zoo management adri jovin
Zoo management  adri jovinZoo management  adri jovin
Zoo management adri jovin
 
Unit2 jwfiles
Unit2 jwfilesUnit2 jwfiles
Unit2 jwfiles
 
บทที่ 3
บทที่ 3บทที่ 3
บทที่ 3
 
String Manipulation Function and Header File Functions
String Manipulation Function and Header File FunctionsString Manipulation Function and Header File Functions
String Manipulation Function and Header File Functions
 
C-Language Unit-2
C-Language Unit-2C-Language Unit-2
C-Language Unit-2
 
3 character strings and formatted input output
3  character strings and formatted input output3  character strings and formatted input output
3 character strings and formatted input output
 

More from Nattapon

About Python
About PythonAbout Python
About PythonNattapon
 
มาตรฐานการศึกษา โรงเรียนเตรียมอุดมศึกษาพัฒนาการ ปทุมธานี
มาตรฐานการศึกษา โรงเรียนเตรียมอุดมศึกษาพัฒนาการ ปทุมธานีมาตรฐานการศึกษา โรงเรียนเตรียมอุดมศึกษาพัฒนาการ ปทุมธานี
มาตรฐานการศึกษา โรงเรียนเตรียมอุดมศึกษาพัฒนาการ ปทุมธานีNattapon
 
ใบความรู้ที่ 10 application calculator
ใบความรู้ที่ 10 application calculatorใบความรู้ที่ 10 application calculator
ใบความรู้ที่ 10 application calculatorNattapon
 
รายงานการวิจัยการพัฒนาบทเรียนคอมพิวเตอร์บนเครือข่ายอินเตอร์เน็ต (E-Learning) ...
รายงานการวิจัยการพัฒนาบทเรียนคอมพิวเตอร์บนเครือข่ายอินเตอร์เน็ต (E-Learning) ...รายงานการวิจัยการพัฒนาบทเรียนคอมพิวเตอร์บนเครือข่ายอินเตอร์เน็ต (E-Learning) ...
รายงานการวิจัยการพัฒนาบทเรียนคอมพิวเตอร์บนเครือข่ายอินเตอร์เน็ต (E-Learning) ...Nattapon
 
รายงานการวิจัยวิเคราะห์ผู้เรียนเป็นรายบุคคล ม.5/8
รายงานการวิจัยวิเคราะห์ผู้เรียนเป็นรายบุคคล ม.5/8รายงานการวิจัยวิเคราะห์ผู้เรียนเป็นรายบุคคล ม.5/8
รายงานการวิจัยวิเคราะห์ผู้เรียนเป็นรายบุคคล ม.5/8Nattapon
 
รายงานการวิจัยในชั้นเรียนเรื่องการพัฒนาบทเรียนคอมพิวเตอร์บนเครือข่ายอินเทอร์เ...
รายงานการวิจัยในชั้นเรียนเรื่องการพัฒนาบทเรียนคอมพิวเตอร์บนเครือข่ายอินเทอร์เ...รายงานการวิจัยในชั้นเรียนเรื่องการพัฒนาบทเรียนคอมพิวเตอร์บนเครือข่ายอินเทอร์เ...
รายงานการวิจัยในชั้นเรียนเรื่องการพัฒนาบทเรียนคอมพิวเตอร์บนเครือข่ายอินเทอร์เ...Nattapon
 
รายงานผลการประเมินตนเอง ภาคเรียนที่ 2 ปีการศึกษา 2556
รายงานผลการประเมินตนเอง ภาคเรียนที่ 2 ปีการศึกษา 2556รายงานผลการประเมินตนเอง ภาคเรียนที่ 2 ปีการศึกษา 2556
รายงานผลการประเมินตนเอง ภาคเรียนที่ 2 ปีการศึกษา 2556Nattapon
 
รายงานผลการประเมินตนเอง ภาคเรียนที่ 1 ปีการศึกษา 2556
รายงานผลการประเมินตนเอง ภาคเรียนที่ 1 ปีการศึกษา 2556รายงานผลการประเมินตนเอง ภาคเรียนที่ 1 ปีการศึกษา 2556
รายงานผลการประเมินตนเอง ภาคเรียนที่ 1 ปีการศึกษา 2556Nattapon
 
บันทึกความดี ภาคเรียนที่ 2 ปีการศึกษา 2556
บันทึกความดี ภาคเรียนที่ 2 ปีการศึกษา 2556บันทึกความดี ภาคเรียนที่ 2 ปีการศึกษา 2556
บันทึกความดี ภาคเรียนที่ 2 ปีการศึกษา 2556Nattapon
 
ภาคเรียนที่ 1 ปีการศึกษา 2556
ภาคเรียนที่ 1 ปีการศึกษา 2556ภาคเรียนที่ 1 ปีการศึกษา 2556
ภาคเรียนที่ 1 ปีการศึกษา 2556Nattapon
 
ใบความรู้ที่ 8 application paint pot2
ใบความรู้ที่ 8 application paint pot2ใบความรู้ที่ 8 application paint pot2
ใบความรู้ที่ 8 application paint pot2Nattapon
 
ใบความรู้ที่ 7 application paint pot
ใบความรู้ที่ 7 application paint potใบความรู้ที่ 7 application paint pot
ใบความรู้ที่ 7 application paint potNattapon
 
ใบความรู้ที่ 6 application talk to me
ใบความรู้ที่ 6 application talk to meใบความรู้ที่ 6 application talk to me
ใบความรู้ที่ 6 application talk to meNattapon
 
ใบความรู้ที่ 5 ส่วนประกอบของโปรแกรม mit app inventor
ใบความรู้ที่ 5 ส่วนประกอบของโปรแกรม mit app inventorใบความรู้ที่ 5 ส่วนประกอบของโปรแกรม mit app inventor
ใบความรู้ที่ 5 ส่วนประกอบของโปรแกรม mit app inventorNattapon
 
ใบความรู้ที่ 4 เริ่มต้นสร้างแอพลิเคชันด้วย mit app inventor
ใบความรู้ที่ 4 เริ่มต้นสร้างแอพลิเคชันด้วย mit app inventorใบความรู้ที่ 4 เริ่มต้นสร้างแอพลิเคชันด้วย mit app inventor
ใบความรู้ที่ 4 เริ่มต้นสร้างแอพลิเคชันด้วย mit app inventorNattapon
 
ใบความรู้ที่ 3 เริ่มต้นเกี่ยวกับ mit app inventor 2
ใบความรู้ที่ 3 เริ่มต้นเกี่ยวกับ mit app inventor 2ใบความรู้ที่ 3 เริ่มต้นเกี่ยวกับ mit app inventor 2
ใบความรู้ที่ 3 เริ่มต้นเกี่ยวกับ mit app inventor 2Nattapon
 
ใบความรู้ที่ 2 การวางแผนจัดทำ application
ใบความรู้ที่ 2 การวางแผนจัดทำ applicationใบความรู้ที่ 2 การวางแผนจัดทำ application
ใบความรู้ที่ 2 การวางแผนจัดทำ applicationNattapon
 
ใบความรู้ที่ 1 หลักการและขั้นตอนการพัฒนา application
ใบความรู้ที่ 1 หลักการและขั้นตอนการพัฒนา applicationใบความรู้ที่ 1 หลักการและขั้นตอนการพัฒนา application
ใบความรู้ที่ 1 หลักการและขั้นตอนการพัฒนา applicationNattapon
 
การติดตั้งโปรแกรม Microsoft visual studio 2010
การติดตั้งโปรแกรม Microsoft visual studio 2010การติดตั้งโปรแกรม Microsoft visual studio 2010
การติดตั้งโปรแกรม Microsoft visual studio 2010Nattapon
 

More from Nattapon (20)

Resume
ResumeResume
Resume
 
About Python
About PythonAbout Python
About Python
 
มาตรฐานการศึกษา โรงเรียนเตรียมอุดมศึกษาพัฒนาการ ปทุมธานี
มาตรฐานการศึกษา โรงเรียนเตรียมอุดมศึกษาพัฒนาการ ปทุมธานีมาตรฐานการศึกษา โรงเรียนเตรียมอุดมศึกษาพัฒนาการ ปทุมธานี
มาตรฐานการศึกษา โรงเรียนเตรียมอุดมศึกษาพัฒนาการ ปทุมธานี
 
ใบความรู้ที่ 10 application calculator
ใบความรู้ที่ 10 application calculatorใบความรู้ที่ 10 application calculator
ใบความรู้ที่ 10 application calculator
 
รายงานการวิจัยการพัฒนาบทเรียนคอมพิวเตอร์บนเครือข่ายอินเตอร์เน็ต (E-Learning) ...
รายงานการวิจัยการพัฒนาบทเรียนคอมพิวเตอร์บนเครือข่ายอินเตอร์เน็ต (E-Learning) ...รายงานการวิจัยการพัฒนาบทเรียนคอมพิวเตอร์บนเครือข่ายอินเตอร์เน็ต (E-Learning) ...
รายงานการวิจัยการพัฒนาบทเรียนคอมพิวเตอร์บนเครือข่ายอินเตอร์เน็ต (E-Learning) ...
 
รายงานการวิจัยวิเคราะห์ผู้เรียนเป็นรายบุคคล ม.5/8
รายงานการวิจัยวิเคราะห์ผู้เรียนเป็นรายบุคคล ม.5/8รายงานการวิจัยวิเคราะห์ผู้เรียนเป็นรายบุคคล ม.5/8
รายงานการวิจัยวิเคราะห์ผู้เรียนเป็นรายบุคคล ม.5/8
 
รายงานการวิจัยในชั้นเรียนเรื่องการพัฒนาบทเรียนคอมพิวเตอร์บนเครือข่ายอินเทอร์เ...
รายงานการวิจัยในชั้นเรียนเรื่องการพัฒนาบทเรียนคอมพิวเตอร์บนเครือข่ายอินเทอร์เ...รายงานการวิจัยในชั้นเรียนเรื่องการพัฒนาบทเรียนคอมพิวเตอร์บนเครือข่ายอินเทอร์เ...
รายงานการวิจัยในชั้นเรียนเรื่องการพัฒนาบทเรียนคอมพิวเตอร์บนเครือข่ายอินเทอร์เ...
 
รายงานผลการประเมินตนเอง ภาคเรียนที่ 2 ปีการศึกษา 2556
รายงานผลการประเมินตนเอง ภาคเรียนที่ 2 ปีการศึกษา 2556รายงานผลการประเมินตนเอง ภาคเรียนที่ 2 ปีการศึกษา 2556
รายงานผลการประเมินตนเอง ภาคเรียนที่ 2 ปีการศึกษา 2556
 
รายงานผลการประเมินตนเอง ภาคเรียนที่ 1 ปีการศึกษา 2556
รายงานผลการประเมินตนเอง ภาคเรียนที่ 1 ปีการศึกษา 2556รายงานผลการประเมินตนเอง ภาคเรียนที่ 1 ปีการศึกษา 2556
รายงานผลการประเมินตนเอง ภาคเรียนที่ 1 ปีการศึกษา 2556
 
บันทึกความดี ภาคเรียนที่ 2 ปีการศึกษา 2556
บันทึกความดี ภาคเรียนที่ 2 ปีการศึกษา 2556บันทึกความดี ภาคเรียนที่ 2 ปีการศึกษา 2556
บันทึกความดี ภาคเรียนที่ 2 ปีการศึกษา 2556
 
ภาคเรียนที่ 1 ปีการศึกษา 2556
ภาคเรียนที่ 1 ปีการศึกษา 2556ภาคเรียนที่ 1 ปีการศึกษา 2556
ภาคเรียนที่ 1 ปีการศึกษา 2556
 
ใบความรู้ที่ 8 application paint pot2
ใบความรู้ที่ 8 application paint pot2ใบความรู้ที่ 8 application paint pot2
ใบความรู้ที่ 8 application paint pot2
 
ใบความรู้ที่ 7 application paint pot
ใบความรู้ที่ 7 application paint potใบความรู้ที่ 7 application paint pot
ใบความรู้ที่ 7 application paint pot
 
ใบความรู้ที่ 6 application talk to me
ใบความรู้ที่ 6 application talk to meใบความรู้ที่ 6 application talk to me
ใบความรู้ที่ 6 application talk to me
 
ใบความรู้ที่ 5 ส่วนประกอบของโปรแกรม mit app inventor
ใบความรู้ที่ 5 ส่วนประกอบของโปรแกรม mit app inventorใบความรู้ที่ 5 ส่วนประกอบของโปรแกรม mit app inventor
ใบความรู้ที่ 5 ส่วนประกอบของโปรแกรม mit app inventor
 
ใบความรู้ที่ 4 เริ่มต้นสร้างแอพลิเคชันด้วย mit app inventor
ใบความรู้ที่ 4 เริ่มต้นสร้างแอพลิเคชันด้วย mit app inventorใบความรู้ที่ 4 เริ่มต้นสร้างแอพลิเคชันด้วย mit app inventor
ใบความรู้ที่ 4 เริ่มต้นสร้างแอพลิเคชันด้วย mit app inventor
 
ใบความรู้ที่ 3 เริ่มต้นเกี่ยวกับ mit app inventor 2
ใบความรู้ที่ 3 เริ่มต้นเกี่ยวกับ mit app inventor 2ใบความรู้ที่ 3 เริ่มต้นเกี่ยวกับ mit app inventor 2
ใบความรู้ที่ 3 เริ่มต้นเกี่ยวกับ mit app inventor 2
 
ใบความรู้ที่ 2 การวางแผนจัดทำ application
ใบความรู้ที่ 2 การวางแผนจัดทำ applicationใบความรู้ที่ 2 การวางแผนจัดทำ application
ใบความรู้ที่ 2 การวางแผนจัดทำ application
 
ใบความรู้ที่ 1 หลักการและขั้นตอนการพัฒนา application
ใบความรู้ที่ 1 หลักการและขั้นตอนการพัฒนา applicationใบความรู้ที่ 1 หลักการและขั้นตอนการพัฒนา application
ใบความรู้ที่ 1 หลักการและขั้นตอนการพัฒนา application
 
การติดตั้งโปรแกรม Microsoft visual studio 2010
การติดตั้งโปรแกรม Microsoft visual studio 2010การติดตั้งโปรแกรม Microsoft visual studio 2010
การติดตั้งโปรแกรม Microsoft visual studio 2010
 

Recently uploaded

Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...PsychoTech Services
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 

Recently uploaded (20)

Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 

บทที่ 6 1 ฟังก์ชัน printf scanf [slide]

  • 1. กF Printf(); Printf(); Scanf(); Scanf(); ก ก กก
  • 2. ก F printf F scanf F F ก F F printf scanf ก ก F F stdio.h กF F กF printf scanf F F #include<stdio.h>
  • 3. กF printf() printf() printf() ก F 1. F ก printf( F ); F printf( Hello world ); 2. ก printf( ก , ); F F printf( My age is %dn , myAge);
  • 4. ก format code %d ก (int, short, unsigned short, long, unsigned long %u ก ก (unsigned short, unsigned long %o ก ก %x ก ก ก %f ก (float, double, long double) %e ก ก E ( e) กก (float, double, long double) %c ก ก 1 (char) %s ก F (ก กก F 1 ) %p ก F (pointer)
  • 5. F main() { int i =12345; float x=350.875; printf( %dn ,i); printf( %fn ,x); }
  • 7. กF scanf(); scanf(); Scanf( ) ก F F ก F • กF F C ก ก scanf( ) • F ก keyboard F ก F F F (memory address ) ก ก F function scanf( ) F F F F (address) F F function scanf( )
  • 8. F กF scanf(); scanf(); scanf( format string , &variable); 1. format string Fก ก ก F 2. &variable ( ก F F ก F ) F Fก F F &name
  • 9. F ก F กF scanf(); scanf(); F F F int month ,year; scanf( %d %d , &month, &year); ก ก F F int i; float x; scanf( %d %f ,&i,&x);
  • 10. F #include<stdio.h> #include<conio.h> int main() { int year; float salary; clrscr(); printf(“Insert year experience and salary : ”); scanf(“%d %f”,&year,&salary); printf(“You worked for %d years.n”,year); printf(“Your salary is %.2fn”,salary); return(0); }