Advertisement
dllbridge

Untitled

Jan 15th, 2023
860
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.70 KB | None | 0 0
  1.  
  2.  
  3.  
  4.  
  5. #include   <stdio.h>
  6.  
  7. void foo();
  8.  
  9. /////////////////////////////////////////////////////////////
  10. int main()                                                 //  
  11. {
  12.  
  13.     foo();    
  14.    
  15. }
  16.  
  17.  
  18.  
  19.  
  20.  
  21. /////////////////////////////////////////////////////////////
  22. void foo()
  23. {
  24.  
  25.     int n = 232;
  26.    
  27.    
  28.  
  29.  
  30.     scanf("%d", &n);
  31.    
  32.     printf("n = %d", n);    
  33.    
  34. }
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43. /*
  44.  
  45. #include   <stdio.h>
  46.  
  47.  
  48.  
  49. /////////////////////////////////////////////////////////////
  50. int main()                                                 //  
  51. {
  52.  
  53.     int n = 232;
  54.    
  55.    
  56.  
  57.  
  58.     scanf("%d", &n);
  59.    
  60.     printf("n = %d", n);    
  61.    
  62. }
  63.  
  64.  
  65. */
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94. /*
  95.  
  96. #include   <stdio.h>
  97.  
  98.  
  99. /////////////////////////////////////////////////////////////
  100. int main()                                                 //  
  101. {
  102.  
  103.  
  104.     int n = 232;
  105.    
  106.     int b = n + 1;
  107.    
  108.    
  109.     float      fl = 3.1234;
  110.    
  111.     printf("%0.2f = %d", fl, n+7);
  112.    
  113. }
  114.  
  115.  
  116.  
  117.  
  118. */
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142.  
  143. /*
  144.  
  145. #include   <stdio.h>
  146. #include  <locale.h>       //  здесь "живёт" setlocale(LC_ALL, "rus");
  147.  
  148. int n;
  149.  
  150.  
  151.  
  152. /////////////////////////////////////////////////////////////
  153. int main()                                                 //  
  154. {
  155.    
  156.     setlocale(LC_ALL, "rus");
  157.                
  158.     printf("Верные символы %d", 77);  
  159.  
  160.  
  161.  
  162.     scanf("%d", n);
  163. return 0;
  164. }
  165.  
  166. */
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185. /*
  186.  
  187. #include <iostream>
  188. using namespace std;
  189.  
  190.  
  191. int main()
  192. {
  193.  
  194.     setlocale(LC_ALL, "rus");  
  195.    
  196.     cout << "Привет - Hello !" << endl;
  197.    
  198.    
  199. return 0;
  200. }
  201.  
  202.  
  203. */
  204.  
  205.  
  206.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement