Advertisement
dllbridge

Untitled

Dec 6th, 2021
897
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.31 KB | None | 0 0
  1.  
  2.  
  3. /*
  4. #include    <stdio.h>
  5. #include   <locale.h>
  6.  
  7.  
  8.  
  9.  
  10. int n = 876238467;
  11.  
  12.  
  13. ////////////////////////////////////////////////////
  14. int main()                                        //
  15. {
  16.  
  17.     setlocale(LC_ALL, "RUS");
  18.  
  19.     scanf("%d", &n);
  20.    
  21.    
  22.     printf("n = %d \n", n);
  23.    
  24.    
  25.    
  26.    
  27.     switch(n)
  28.     {
  29.        
  30.        case 100: printf("This number is 100");
  31.                  break;
  32.        case  40: printf("This number is  40");  
  33.                  break;
  34.      
  35.        default:  printf("Unknown number.");    
  36.     }
  37. }
  38.  
  39.  
  40.  
  41.  
  42.  
  43. */
  44.  
  45.  
  46.  
  47.  
  48. #include    <stdio.h>
  49. #include   <locale.h>   //  Это нужно для русского языка
  50.  
  51.  
  52.  
  53.  
  54. int n = 876238467;
  55.  
  56.  
  57. ////////////////////////////////////////////////////
  58. int main()                                        //
  59. {
  60.  
  61.     setlocale(LC_ALL, "RUS");
  62.  
  63.     scanf("%d", &n);
  64.    
  65.     printf("число Pi = %.2f \n", 3.14);
  66.    
  67.    
  68.     if( n >  100)
  69.     {
  70.         printf("This number is greater than 100.");
  71.        
  72.         return 0;
  73.     }
  74.  
  75.     if( n == 100) { printf("This number is 100");  return 0; }    
  76.    
  77.     printf("Это число меньше, чем 100."      );
  78. }
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.    
  110.    // printf("n = %d \n", n);
  111. //    if( n <  100)  printf("This number is less than 100"    );
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement