Advertisement
dllbridge

Untitled

Mar 18th, 2025
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 2.04 KB | None | 0 0
  1.  
  2.  
  3.  
  4. #include  <stdio.h>
  5.  
  6.  
  7. int nArr[99];// = {10, 11, 12};
  8.  
  9.  
  10. ////////////////////////////////////////////////////
  11. int main()                                        //
  12. {
  13.    
  14.     int nA[99];
  15.    
  16.     for(int i = 1; i <= 10; i++)
  17.     {
  18.         printf("%d\n", nA[i]);
  19.     }  
  20.    
  21. }
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44. /*
  45.  
  46. #include  <stdio.h>
  47.  
  48.  
  49. void mult(int x);
  50.  
  51.  
  52.  
  53.  
  54. ////////////////////////////////////////////////////
  55. int main()                                        //
  56. {
  57.     for(int n = 2; n <= 10; n++)
  58.     {    
  59.         mult(n);
  60.     }
  61.        
  62. }
  63.  
  64.  
  65.  
  66.  
  67. ////////////////////////////////////////////////////
  68. void mult(int x)                                  //  
  69. {
  70.     for(int i = 1; i <= 10; i++)
  71.     {
  72.         printf("%d * %2d = %3d\n", x, i, x * i);
  73.     }   printf("\n");
  74. }
  75.  
  76. */
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97. //  printf("%d * %d = %2d\n", n, 2, n * 2);
  98.     //printf("%d * %d = %2d\n", n, 3, n * 3);
  99.     //printf("%d * %d = %2d\n", n, 4, n * 4);  
  100. //  for(int i = 0; i < 5; i++)
  101.  
  102.  
  103.  
  104.  
  105. /*
  106.  
  107.  
  108. #include  <stdio.h>
  109.  
  110.  
  111. int  nArr[99] = {56789, 8, 622};
  112.  
  113. char c = 'F';
  114.  
  115. char sz [99] = "SONY";
  116. char sz2[99] = {52, 79, 78, 89};
  117.  
  118. ////////////////////////////////////////////////////
  119. int main()                                        //
  120. {
  121.    
  122.     for(int i = 0; i < 5; i++)
  123.     {
  124.         printf("%2d = %c\n", sz2[i], sz2[i]);
  125.     }
  126.  
  127. }
  128.  
  129.  
  130.  
  131. */
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142.  
  143. /*
  144. #include  <stdio.h>
  145.  
  146.  
  147. int  nArr[99] = {56789, 8, 622};
  148.  
  149. char c = 'F';
  150.  
  151. char sz [99] = "SONY";
  152. char sz2[99] = {52, 79, 78, 89};
  153.  
  154. ////////////////////////////////////////////////////
  155. int main()                                        //
  156. {
  157.    
  158.    
  159.     printf("%s\n", sz2);
  160.    
  161.     printf("size of nArr = %d \n", sizeof(nArr));    
  162.  
  163. }
  164.  
  165. */
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188. /*
  189. #include  <stdio.h>
  190.  
  191.  
  192. unsigned int  n = 4123456789;
  193.  
  194.  
  195. ////////////////////////////////////////////////////
  196. int main()                                        //
  197. {
  198.    
  199.     printf("Hello, World !");
  200.     printf("\nn = %d \n", n);    
  201.     getchar();
  202. }
  203.  
  204. */
  205.  
  206.  
  207.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement