Guest User

hw.2 30/1/2018

a guest
Jan 29th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.24 KB | None | 0 0
  1. #include<stdio.h>
  2.  
  3. void main()
  4. {
  5.     int i,n;
  6.  
  7.     ag:
  8.     scanf("%d",&n);
  9.  
  10.     if(n!=-1)
  11.     {
  12.         for(i=1;i<=12;i++)
  13.             printf("%d X %d = %d\n",n,i,n*i);
  14.  
  15.         goto ag;
  16.     }
  17.     else
  18.         printf("STOP");
  19.  
  20. }
Advertisement
Add Comment
Please, Sign In to add comment