Advertisement
dllbridge

Untitled

Jul 20th, 2024
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.92 KB | None | 0 0
  1.  
  2. /*
  3.  
  4. #include       <stdio.h>
  5.  
  6.  
  7.  
  8. __int8 sz[99] = "catdog";
  9.   char                 d;
  10. __int32     i =        1;
  11.  
  12.  
  13.  
  14.  
  15.  
  16. ////////////////////////////////////////////////////
  17. int main()                                        //                                              
  18. {
  19.    
  20.     for(i = 0; i < 6; i++)
  21.     {
  22.        
  23.         if(sz[i] == 'd')
  24.         {
  25.              goto L_01;
  26.         }
  27.        
  28.         printf("%c", sz[i]);
  29.     }
  30.    
  31. L_01: int n1;
  32. }
  33.  
  34.  
  35.  
  36. */
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46. #include       <stdio.h>
  47.  
  48.  
  49. int nArr[10] = {0, 7, 14, 21, 28, 35, 42, 49, 56, 9};
  50. // почему не могу указать `10 ячеек в массиве, ведь первая это 0. Приходится 11.
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58. ////////////////////////////////////////////////////
  59. int main()                                        //
  60. {
  61.  
  62.     for(int i=0; ;)
  63.     {
  64.         if(i > 9) break;
  65.         printf("7*%d = %d\n", i, nArr[i]);
  66.         i++;
  67.     }
  68. }
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement