SlideShare una empresa de Scribd logo
1 de 5
Descargar para leer sin conexión
-         ..............................................................                                                                  20                  2553
                                                                                              F

                                                                                                F
..........................................................................................................................................................................
            (variables)
                                           FF               F        F                                           F                  F
  F                                   F           F                                        5                             (char)                       (int)
      (float)                                   2 F (double) F F F                            (void)                                                                  F




                                                   F                                                      F      F                     F                   F

  char                                                   ,F                                         1                  -128 128
  int                                                                                               2                  -32768 32767
  float                                                                                             4                  3.4E-38 3.4E+38
  double                                                                                            8                  1.7E-308 1.7E+308



      1. F                 F F                                           underscore F
      2. F                                                                          underscore
      3.                             F         (                     F F compiler         F 31                                             F                       F
                       )
                       F
      4. F                                      33
           asm auto break case char const continue default do double else enum extern float for goto if
      int long register return short signed sizeof static struct switch typedef union unsigned void
      volatile while
      5.
-        ..............................................................               20                    2553



                             F                      F                                     F
F

                   F                                                F             F   F                    F
               F F F               =       F                                                       F   F
            char name, day = 'S' , surname[20] ="Kodedee";
            int x=5 ,y,z[100]; float a=5.00 ,b,c; double k=1.234567, m ;



    F                                           F       F                   F

                                           F

            1.                            name                    char                                          .
            2.                           num1                    int                                            .
            3.                           sum                    float                                          .
            4.                           score                  double                                          .
            5.                            age                  int                                             .
-   ..............................................................                                                                                      20               2553

         (operator)
                                                                                         F                          F                                                    F

                                        F (mathematical operators)
                      F                                                                                                         F
          +                                                                                              2+5                                               F7
          -                                                                                               7-4                                              F3
          *                                                                                              2*6                                             F 12
          /                                                                                               8/2                                             F4
          %                                                                                              9%4                                                F1

                                    F                                           (relational operators)
                  F                                                                                                         F
          <                                               F                 F                       2<3                                             F       (1)
          >                                                             F                        2>3            F                                       (false)(0)
         <=                                    F              F                      F            2<= 3                                         F           (true)
         >=                                           F                          F               2>= 3                                  F                  (false)
         ==                                                        F                              4==4                                      F              (true)
         !=                                                       F F                             2!= 2                 F                                 (false)



                              (logical operators)
                          F                                                                                                         F
         &&                                                       (AND)                         (2<3)&&(3>1)                                                         F
          ||                                                       (OR)                           (2>3)||(4<1)                                                   F
                                                                                                           (false)
           !                                                      (NOT)
                                                                  F                              !(2> 3)         F                                           (true)
-       ..............................................................                    20   2553

      F    1                                                    F
               F
                                     F               =5
                                     F         =4
                                         = 0.5 x                           x
                             F
                             F
                                 F
                             F

                         F                                  F                  example1.c
/* program example1.c */
#include <stdio.h>
int lengt , high ;
float area;
main()
{
     lengt = 5;
     high = 4;
     area = 0.5 * lengt * high ;
     printf("tDetermination of triangle arean");
     printf("tThe length of triangle = %dn ",lengt);
     printf("tThe height of triangle = %dn ",high);
     printf("tThe area of triangle = %.2fn",area);
}
-       ..............................................................                         20       2553

      F   2                                                              2.00      F
                                                FF                   F                       F        F    F
                     F                                   F                      example2.c


/* program example2.c */
#include <stdio.h>
#define pi 3.14
float radius,area;
main()
   {
        radius = 2.00;
        area = pi * radius * radius;
         printf("tArea of circlen ");
         printf("tRadius = %.2f n",radius);
        printf("tArea = %.2f n",area);
      }

Más contenido relacionado

La actualidad más candente

1 โลกและการเปลี่ยนแปลง
1 โลกและการเปลี่ยนแปลง1 โลกและการเปลี่ยนแปลง
1 โลกและการเปลี่ยนแปลง
muang82
 
07การเคลื่อนที่แบบหมุน
07การเคลื่อนที่แบบหมุน07การเคลื่อนที่แบบหมุน
07การเคลื่อนที่แบบหมุน
Doc Edu
 
08สภาพสมดุล
08สภาพสมดุล08สภาพสมดุล
08สภาพสมดุล
Doc Edu
 
ธรรมชาติของสิ่งมีชีวิต
ธรรมชาติของสิ่งมีชีวิตธรรมชาติของสิ่งมีชีวิต
ธรรมชาติของสิ่งมีชีวิต
Thanyamon Chat.
 
นิเวศวิทยา(Hand out)
นิเวศวิทยา(Hand out)นิเวศวิทยา(Hand out)
นิเวศวิทยา(Hand out)
Thanyamon Chat.
 
11คลื่นกล
11คลื่นกล11คลื่นกล
11คลื่นกล
Doc Edu
 
06โมเมนตัมและการดล
06โมเมนตัมและการดล06โมเมนตัมและการดล
06โมเมนตัมและการดล
Doc Edu
 
12เสียง
12เสียง12เสียง
12เสียง
Doc Edu
 
ใบความรู้ที่ 6-5 ฟังก์ชัน If, If-Else
ใบความรู้ที่ 6-5 ฟังก์ชัน If, If-Elseใบความรู้ที่ 6-5 ฟังก์ชัน If, If-Else
ใบความรู้ที่ 6-5 ฟังก์ชัน If, If-Else
Nattapon
 
20ฟิสิกส์นิวเคลียร์
20ฟิสิกส์นิวเคลียร์20ฟิสิกส์นิวเคลียร์
20ฟิสิกส์นิวเคลียร์
Doc Edu
 
Chemical management procedure [th]
Chemical management procedure [th]Chemical management procedure [th]
Chemical management procedure [th]
Adisorn Tanprasert
 
นิเวศวิทยา
นิเวศวิทยานิเวศวิทยา
นิเวศวิทยา
Thanyamon Chat.
 
2553 13-performance
2553 13-performance2553 13-performance
2553 13-performance
ps-most
 
ระบบหมุนเวียน
ระบบหมุนเวียนระบบหมุนเวียน
ระบบหมุนเวียน
Thanyamon Chat.
 
10ความร้อน
10ความร้อน10ความร้อน
10ความร้อน
Doc Edu
 

La actualidad más candente (18)

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/~...
 
08สภาพสมดุล
08สภาพสมดุล08สภาพสมดุล
08สภาพสมดุล
 
ธรรมชาติของสิ่งมีชีวิต
ธรรมชาติของสิ่งมีชีวิตธรรมชาติของสิ่งมีชีวิต
ธรรมชาติของสิ่งมีชีวิต
 
นิเวศวิทยา(Hand out)
นิเวศวิทยา(Hand out)นิเวศวิทยา(Hand out)
นิเวศวิทยา(Hand out)
 
11คลื่นกล
11คลื่นกล11คลื่นกล
11คลื่นกล
 
06โมเมนตัมและการดล
06โมเมนตัมและการดล06โมเมนตัมและการดล
06โมเมนตัมและการดล
 
12เสียง
12เสียง12เสียง
12เสียง
 
ใบความรู้ที่ 6-5 ฟังก์ชัน If, If-Else
ใบความรู้ที่ 6-5 ฟังก์ชัน If, If-Elseใบความรู้ที่ 6-5 ฟังก์ชัน If, If-Else
ใบความรู้ที่ 6-5 ฟังก์ชัน If, If-Else
 
20ฟิสิกส์นิวเคลียร์
20ฟิสิกส์นิวเคลียร์20ฟิสิกส์นิวเคลียร์
20ฟิสิกส์นิวเคลียร์
 
Chemical management procedure [th]
Chemical management procedure [th]Chemical management procedure [th]
Chemical management procedure [th]
 
นิเวศวิทยา
นิเวศวิทยานิเวศวิทยา
นิเวศวิทยา
 
2553 13-performance
2553 13-performance2553 13-performance
2553 13-performance
 
เจ็ดดาวเหนือ
เจ็ดดาวเหนือเจ็ดดาวเหนือ
เจ็ดดาวเหนือ
 
ระบบหมุนเวียน
ระบบหมุนเวียนระบบหมุนเวียน
ระบบหมุนเวียน
 
10ความร้อน
10ความร้อน10ความร้อน
10ความร้อน
 

Similar a การกำหนดตัวแปร

ตรรกศาสตร์เบื้องต้น
ตรรกศาสตร์เบื้องต้นตรรกศาสตร์เบื้องต้น
ตรรกศาสตร์เบื้องต้น
wanwilai
 
แบบสอบถามความคิดเห็นเกี่ยวกับทัศนคติเรื่องเพศสัมพันธ์ในวัยเรียน
แบบสอบถามความคิดเห็นเกี่ยวกับทัศนคติเรื่องเพศสัมพันธ์ในวัยเรียนแบบสอบถามความคิดเห็นเกี่ยวกับทัศนคติเรื่องเพศสัมพันธ์ในวัยเรียน
แบบสอบถามความคิดเห็นเกี่ยวกับทัศนคติเรื่องเพศสัมพันธ์ในวัยเรียน
Peung Chanthimarn
 
แบบสอบถามความคิดเห็นเกี่ยวกับทัศนคติเรื่องเพศสัมพันธ์ในวัยเรียน
แบบสอบถามความคิดเห็นเกี่ยวกับทัศนคติเรื่องเพศสัมพันธ์ในวัยเรียนแบบสอบถามความคิดเห็นเกี่ยวกับทัศนคติเรื่องเพศสัมพันธ์ในวัยเรียน
แบบสอบถามความคิดเห็นเกี่ยวกับทัศนคติเรื่องเพศสัมพันธ์ในวัยเรียน
Peung Chanthimarn
 
ชุดการสอนวิชาโครงงาน
ชุดการสอนวิชาโครงงานชุดการสอนวิชาโครงงาน
ชุดการสอนวิชาโครงงาน
kasetpcc
 
ใบความรู้เรื่องคำสั่ง Printf scanf
ใบความรู้เรื่องคำสั่ง Printf scanfใบความรู้เรื่องคำสั่ง Printf scanf
ใบความรู้เรื่องคำสั่ง Printf scanf
ธงชัย พาศรี
 
Microsoft word ใบงาน การลำเลียงสารในร่างกายของสัตว์
Microsoft word   ใบงาน การลำเลียงสารในร่างกายของสัตว์Microsoft word   ใบงาน การลำเลียงสารในร่างกายของสัตว์
Microsoft word ใบงาน การลำเลียงสารในร่างกายของสัตว์
Thanyamon Chat.
 
7 การเคลื่อนที่แบบหมุน
7 การเคลื่อนที่แบบหมุน7 การเคลื่อนที่แบบหมุน
7 การเคลื่อนที่แบบหมุน
topofzeed
 
คู่มือประมวลข่าวประจำวัน
คู่มือประมวลข่าวประจำวันคู่มือประมวลข่าวประจำวัน
คู่มือประมวลข่าวประจำวัน
Thitima Jiramanit
 
คู่มือประมวลข่าวประจำวัน
คู่มือประมวลข่าวประจำวันคู่มือประมวลข่าวประจำวัน
คู่มือประมวลข่าวประจำวัน
Thitima Jiramanit
 

Similar a การกำหนดตัวแปร (20)

ตรรกศาสตร์เบื้องต้น
ตรรกศาสตร์เบื้องต้นตรรกศาสตร์เบื้องต้น
ตรรกศาสตร์เบื้องต้น
 
Quit Rent and Assessment Tax : Case study on Johore Bharu, Malaysia by Dr. Ch...
Quit Rent and Assessment Tax : Case study on Johore Bharu, Malaysia by Dr. Ch...Quit Rent and Assessment Tax : Case study on Johore Bharu, Malaysia by Dr. Ch...
Quit Rent and Assessment Tax : Case study on Johore Bharu, Malaysia by Dr. Ch...
 
Pdf114
Pdf114Pdf114
Pdf114
 
K cyber invest-user manual th
K cyber invest-user manual thK cyber invest-user manual th
K cyber invest-user manual th
 
ชนิดข้อมูลและตัวแปร
ชนิดข้อมูลและตัวแปรชนิดข้อมูลและตัวแปร
ชนิดข้อมูลและตัวแปร
 
541
541541
541
 
แบบสอบถามความคิดเห็นเกี่ยวกับทัศนคติเรื่องเพศสัมพันธ์ในวัยเรียน
แบบสอบถามความคิดเห็นเกี่ยวกับทัศนคติเรื่องเพศสัมพันธ์ในวัยเรียนแบบสอบถามความคิดเห็นเกี่ยวกับทัศนคติเรื่องเพศสัมพันธ์ในวัยเรียน
แบบสอบถามความคิดเห็นเกี่ยวกับทัศนคติเรื่องเพศสัมพันธ์ในวัยเรียน
 
แบบสอบถามความคิดเห็นเกี่ยวกับทัศนคติเรื่องเพศสัมพันธ์ในวัยเรียน
แบบสอบถามความคิดเห็นเกี่ยวกับทัศนคติเรื่องเพศสัมพันธ์ในวัยเรียนแบบสอบถามความคิดเห็นเกี่ยวกับทัศนคติเรื่องเพศสัมพันธ์ในวัยเรียน
แบบสอบถามความคิดเห็นเกี่ยวกับทัศนคติเรื่องเพศสัมพันธ์ในวัยเรียน
 
Plan
PlanPlan
Plan
 
Math exam m4 6 2008
Math exam m4 6 2008Math exam m4 6 2008
Math exam m4 6 2008
 
unit13
unit13unit13
unit13
 
ชุดการสอนวิชาโครงงาน
ชุดการสอนวิชาโครงงานชุดการสอนวิชาโครงงาน
ชุดการสอนวิชาโครงงาน
 
ใบความรู้เรื่องคำสั่ง Printf scanf
ใบความรู้เรื่องคำสั่ง Printf scanfใบความรู้เรื่องคำสั่ง Printf scanf
ใบความรู้เรื่องคำสั่ง Printf scanf
 
Microsoft word ใบงาน การลำเลียงสารในร่างกายของสัตว์
Microsoft word   ใบงาน การลำเลียงสารในร่างกายของสัตว์Microsoft word   ใบงาน การลำเลียงสารในร่างกายของสัตว์
Microsoft word ใบงาน การลำเลียงสารในร่างกายของสัตว์
 
Compe
CompeCompe
Compe
 
เซต
เซตเซต
เซต
 
7 การเคลื่อนที่แบบหมุน
7 การเคลื่อนที่แบบหมุน7 การเคลื่อนที่แบบหมุน
7 การเคลื่อนที่แบบหมุน
 
ExamMasterDetail
ExamMasterDetailExamMasterDetail
ExamMasterDetail
 
คู่มือประมวลข่าวประจำวัน
คู่มือประมวลข่าวประจำวันคู่มือประมวลข่าวประจำวัน
คู่มือประมวลข่าวประจำวัน
 
คู่มือประมวลข่าวประจำวัน
คู่มือประมวลข่าวประจำวันคู่มือประมวลข่าวประจำวัน
คู่มือประมวลข่าวประจำวัน
 

Más 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)
ธงชัย พาศรี
 

Más 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)
 

Último

Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
Chris Hunter
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 

Último (20)

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Ữ Â...
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
 
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
 
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 ...
 
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
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
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
 
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
 
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
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
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.
 
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
 
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
 
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...
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 

การกำหนดตัวแปร

  • 1. - .............................................................. 20 2553 F F .......................................................................................................................................................................... (variables) FF F F F F F F F 5 (char) (int) (float) 2 F (double) F F F (void) F F F F F F char ,F 1 -128 128 int 2 -32768 32767 float 4 3.4E-38 3.4E+38 double 8 1.7E-308 1.7E+308 1. F F F underscore F 2. F underscore 3. F ( F F compiler F 31 F F ) F 4. F 33 asm auto break case char const continue default do double else enum extern float for goto if int long register return short signed sizeof static struct switch typedef union unsigned void volatile while 5.
  • 2. - .............................................................. 20 2553 F F F F F F F F F F F F = F F F char name, day = 'S' , surname[20] ="Kodedee"; int x=5 ,y,z[100]; float a=5.00 ,b,c; double k=1.234567, m ; F F F F F 1. name char . 2. num1 int . 3. sum float . 4. score double . 5. age int .
  • 3. - .............................................................. 20 2553 (operator) F F F F (mathematical operators) F F + 2+5 F7 - 7-4 F3 * 2*6 F 12 / 8/2 F4 % 9%4 F1 F (relational operators) F F < F F 2<3 F (1) > F 2>3 F (false)(0) <= F F F 2<= 3 F (true) >= F F 2>= 3 F (false) == F 4==4 F (true) != F F 2!= 2 F (false) (logical operators) F F && (AND) (2<3)&&(3>1) F || (OR) (2>3)||(4<1) F (false) ! (NOT) F !(2> 3) F (true)
  • 4. - .............................................................. 20 2553 F 1 F F F =5 F =4 = 0.5 x x F F F F F F example1.c /* program example1.c */ #include <stdio.h> int lengt , high ; float area; main() { lengt = 5; high = 4; area = 0.5 * lengt * high ; printf("tDetermination of triangle arean"); printf("tThe length of triangle = %dn ",lengt); printf("tThe height of triangle = %dn ",high); printf("tThe area of triangle = %.2fn",area); }
  • 5. - .............................................................. 20 2553 F 2 2.00 F FF F F F F F F example2.c /* program example2.c */ #include <stdio.h> #define pi 3.14 float radius,area; main() { radius = 2.00; area = pi * radius * radius; printf("tArea of circlen "); printf("tRadius = %.2f n",radius); printf("tArea = %.2f n",area); }