C      14 
  


         ,     50 .    Windows, Linux, Git.            .         ,         .     .





 

C      14 











 :












 -        -   ,  - .      12  .      dzmitrybal (https://dzmitrybal.ru/).ru (https://dzmitrybal.ru/).      ,      .



      C?



,    .          .       Codeblocks    https://www.onlinegdb.com/online_c_compiler#.

 ,  printf(",.");

 ,     :

#include <stdio.h>



int main() {



printf(",.");



}

#Include<stdio.h> -    .

int main () - .

{} -          . printf ()- .           .

     .

  . .

: 

1.       є   . 



     C    ?



,  .       .  ,     .   True  False.  .     Code block    https://www.onlinegdb.com/online_c_compiler.

   4  .

Int-  .

Double-      .

Float-    ,   .

Char-  .

        :

int num=1; float salary=1000.56; char letter='D';

 int, float, char   .   -  ,     .     .  

printf("%d \n", num); printf("%f \n", salary); printf("%c \n", letter);

   %f-    float, %c-  char.

\n-   .



     :

#include <stdio.h>



int main()

{

int num=1; float salary=1000.56;

char letter='D';



printf("%d \n", num); printf("%f \n", salary);

printf("%c \n", letter);



}

     .   . .

: 

   int age      . 

 . 

  in        . 

 . 



      ?



    .         ,  - .  Code block     https://www.onlinegdb.com/online_c_compiler#.



  :

char name [310]="Dzmitry."; printf("You entered: %s",name); [310]     .

%s-  .



     :



#include <stdio.h> int main()

{

char name [310]="Dzmitry.";

printf("You entered: %s",name);



}



       . ,    .    .

: 

1.  name     .        . 

2. . 

     .      , . 

 . 

  ,    C?



,     ,  .

 .   CodeBlocks    https://www.onlinegdb.com/online_c_compiler#    :



char name=getchar(); printf("%c",name); getchar()      char(   ).

     :

#include <stdio.h> int main()

{

char name=getchar(); printf("%c",name);

}



     ,    :

char name[300];



fgets(name,300,stdin); printf("  :%s",name); fgets- ,     300    .



      ,   :

int a;

scanf("%d",&a); printf("%d",a);

&   ,      scanf.



     , ,     .   . .

: 

  . 

 . 

  . 

 . 

         . 



      ?



,      .     ,        .  .   Code Blocks   https://www.onlinegdb.com/online_c_compiler.

%d-  .   int num=5; printf("%d",num); %c-  .

 :

char name='D'; printf("%c \n",name);

%s- .

 :

char name2 [250]="Dzmitry"; printf("%s \n",name2); %f-  .

 :

float x=5.7; printf("%f \n",x); %x- .

:

int a=011; printf("%x \n",a);

     :

#include <stdio.h> int main()

{

int num=5; printf("%d",num); char name='D'; printf("%c \n",name); char name2 [250]="Dzmitry"; printf("%s \n",name2); float x=5.7; printf("%f \n",x); int a=011; printf("%x \n",a);

}

  .    . .

: 

   . 

       . 

       . 



      ?



,    .       .    ,             .  .  Code Blocks     https://www.onlinegdb.com/online_c_compiler#:

  : printf("     3 .\n"); printf("  .\n"); printf("    .\n");

  -   2  //.

:

printf("     3 .\n");



//printf("  .\n");

//printf("    .\n");

      ,    /* */

 :

printf("     3 .\n");



/*printf("  .\n");



printf("    .\n");



*/



     ,   :

#include <stdio.h> int main()

{

printf("     3 .\n");

printf("  .\n"); printf("    .\n");

}

      .   . .

: 

     . . 

      . 

 -        . 

   .

,    .     .   : , , ,   , .

 .     CodeBlocks   : https://www.onlinegdb.com/online_c_compiler

 :

int x=10; int y=3; printf("%d\n",x+y); //

printf("%d\n",x-y); // printf("%d\n",x*y); //

printf("%d\n",x/y); // printf("%d\n",x%y);

//  



     :

#include <stdio.h> int main()

{

int x=10; int y=3; printf("%d\n",x+y); //

printf("%d\n",x-y); // printf("%d\n",x*y); //

printf("%d\n",x/y); //

printf("%d\n",x%y);

//  



}



       .   . .

: 

    . 

 , ,   . 



     ?

,    .     .    ,   -       .  .

  CodeBlocks    https://www.onlinegdb.com/online_c_compiler#.

  :

int temp =37; int tempnow =36; if (tempnow<temp) { printf("   .");




  .


   .

   ,     (https://www.litres.ru/pages/biblio_book/?art=72248050)  .

      Visa, MasterCard, Maestro,    ,   ,     ,  PayPal, WebMoney, ., QIWI ,       .


