SlideShare a Scribd company logo
1 of 23
-
                                                    1

    -                                           1




    -


-
                 4
        --
                                       if
                 4
                                  if
                 4
                                       switch
             7

-                        switch
             7


-
                     7
        -
                         8
-             switch

           8

                   9




Mind map




  1.
1.1
                (ldentifier)




                                                     _)
                                          _)




                               $@




                                    Reserved Word)

      1.2




            -

Char
Unsigned char        0

Int                  -32768

Unsignedint          0

Short                -128

Unsigned short 0

Long                 -2147483648
                     2147483649

Unsigned long        0

Float                3.4 x       -              x
                     1038

Double                       x 10-308       x



Long double          3.4 x 10-4032          x       24
                     104032




char a[20] ;




      printf ( “ 2 x 2 = %d  n “ , 4) ;

      printf ( “ c => %c%c  n “ , ‘c’) ;
‘c’




           #define macro_name data ;




           macro_name

data

                                       MAX

#define MAX            ;

1.3.3                                        main ()

           const variable = data ;

           variable

        Data




Const pi           ;

Constans = ‘n’ ;

Const words = “ computer “ ;
2




2.1
2.2




<                             <

>                             >                     false)(

<=                                             <=              true)

>=                                             >=              false)

                                                      true)
      --
                                                      false)




2.3




                                                                        (true : 1)
           (false : 0 )




                          logical operators)
&&                         AND) ( <       &&( >

 ||                         OR) ( >        ||( <                               false)

                           NOT) !( >                                   true)



                                                                                 x
      Y                           2




( a> 0 ) && (a < 10)

      a




          1.                               ( a >0)                 T
          2.                       2 (a < 10)                  F
          3.                                                   T &&F
          4.                                    T &&F          F
                                                          if




          if                                                                            if
                 if-else                                if-else if-else

                                           if

                                       :
if

                                            if

         If

                           ;

                               ;




                                            if

         If

         {

                                   ;

} ;

                       ;




3.1.2                                  if




                                            if        1




*                                      Y> 0

z = x /y ;

printf ( “  n * Result = % .2f “ ,z ) ;

        printf(“n Good bye….. n”) ;
y <= 0

printf(“n Good bye….. n”) ;



                                           if – else

                                :




                                     if – else




         x>y                                     z = y/ x            y / x

3.3.2                               if –else if –else




                      > 10000                                    %

                                                 –                           %




                                                        switch

                                                                                 if
                 switch




                                                                       if
switch



                                 case
                                                 case
                                                             default

          4.1           switch
                                                                   A
                             B                           C
                D                                    F
                                        data error

5.




           OK



                50000                        %

                        %




     1.
     2.
     3.




     1.
3.

                   switch

1.




3.




     if   switch
if




     switch
:
          :


                    .

http://computerpasac54.blogspot.com/p/6_3263.html




              1.1
                               (ldentifier)




                                              if
?




              ?



     $@




3.                ?




                      ?
main ()




5.                 ?
          -


              ^




6.                               ?

     <        >

     <=       ;p




7.                               ?
?

     &&       ||

              %




9.                             if

                     ?

     switch        open

     sever         start




10.
3.

4.



6.
8.

9.

More Related Content

More from Mittapan Chantanyakan

More from Mittapan Chantanyakan (7)

กิจกรรม
กิจกรรมกิจกรรม
กิจกรรม
 
ก จกรรมงานศ ลปะห_ตกรรมน_กเร_ยน (1)
ก จกรรมงานศ ลปะห_ตกรรมน_กเร_ยน (1)ก จกรรมงานศ ลปะห_ตกรรมน_กเร_ยน (1)
ก จกรรมงานศ ลปะห_ตกรรมน_กเร_ยน (1)
 
Chapter1 uml3
Chapter1 uml3Chapter1 uml3
Chapter1 uml3
 
ข าว It news
ข าว It newsข าว It news
ข าว It news
 
คำชมเชย
คำชมเชยคำชมเชย
คำชมเชย
 
It news.
It news.It news.
It news.
 
IT NEWS.
IT NEWS.IT NEWS.
IT NEWS.
 

รายงานตัวเต็ม(Full)

  • 1.
  • 2.
  • 3.
  • 4. - 1 - 1 - - 4 -- if 4 if 4 switch 7 - switch 7 - 7 - 8
  • 5. - switch 8 9 Mind map 1.
  • 6. 1.1 (ldentifier) _) _) $@ Reserved Word) 1.2 - Char
  • 7. Unsigned char 0 Int -32768 Unsignedint 0 Short -128 Unsigned short 0 Long -2147483648 2147483649 Unsigned long 0 Float 3.4 x - x 1038 Double x 10-308 x Long double 3.4 x 10-4032 x 24 104032 char a[20] ; printf ( “ 2 x 2 = %d n “ , 4) ; printf ( “ c => %c%c n “ , ‘c’) ;
  • 8. ‘c’ #define macro_name data ; macro_name data MAX #define MAX ; 1.3.3 main () const variable = data ; variable Data Const pi ; Constans = ‘n’ ; Const words = “ computer “ ;
  • 10. 2.2 < < > > false)( <= <= true) >= >= false) true) -- false) 2.3 (true : 1) (false : 0 ) logical operators)
  • 11. && AND) ( < &&( > || OR) ( > ||( < false) NOT) !( > true) x Y 2 ( a> 0 ) && (a < 10) a 1. ( a >0) T 2. 2 (a < 10) F 3. T &&F 4. T &&F F if if if if-else if-else if-else if :
  • 12. if if If ; ; if If { ; } ; ; 3.1.2 if if 1 * Y> 0 z = x /y ; printf ( “ n * Result = % .2f “ ,z ) ; printf(“n Good bye….. n”) ;
  • 13. y <= 0 printf(“n Good bye….. n”) ; if – else : if – else x>y z = y/ x y / x 3.3.2 if –else if –else > 10000 % – % switch if switch if
  • 14. switch case case default 4.1 switch A B C D F data error 5. OK 50000 % % 1. 2. 3. 1.
  • 15. 3. switch 1. 3. if switch
  • 16. if switch
  • 17. : : . http://computerpasac54.blogspot.com/p/6_3263.html 1.1 (ldentifier) if
  • 18.
  • 19. ? ? $@ 3. ? ?
  • 20. main () 5. ? - ^ 6. ? < > <= ;p 7. ?
  • 21. ? && || % 9. if ? switch open sever start 10.
  • 23. 8. 9.