Advertisement
dllbridge

Untitled

Jan 12th, 2025
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.88 KB | None | 0 0
  1.  
  2. #include <stdio.h>
  3.  
  4. void mult( int );
  5.  
  6.  
  7. ///-------------------------------------
  8. int main()
  9. {
  10.    
  11.     int dima = 1;
  12.    
  13.     printf("true  = %d\n",  true);
  14.     printf("false = %d\n", false);    
  15.     mult(dima);
  16.     printf("-----------\n");
  17.     mult(dima+1);
  18.     printf("-----------\n");
  19.     mult(dima+2);
  20.     printf("-----------\n");
  21.     mult(dima+3);
  22.     printf("-----------\n");
  23.     mult(dima+4);
  24.     printf("-----------\n");
  25.     mult(dima+5);
  26.     printf("-----------\n");
  27.     mult(dima+6);
  28.     printf("-----------\n");
  29.     mult(dima+7);
  30.     printf("-----------\n");
  31.     mult(dima+8);
  32.     printf("-----------\n");
  33.     mult(dima+9);
  34. }
  35.  
  36. ///-------------------------------------
  37. void mult( int a )
  38. {
  39.      
  40.     int i = 1;
  41.    
  42.    
  43. L_01:   printf("%i *  %2i = %2i\n", a, i, a * i);  
  44.  
  45.         i++;  
  46.    
  47.         if(i < 11) goto L_01;
  48.        
  49. }
  50.  
  51.  
  52.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement