fork download
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. int n;
  6. int i;
  7. int t;
  8. //printf("Enter the number");
  9. scanf("%d",&n);
  10. printf("The table of %d is:\n ",n);
  11. for(i=1;i<=10;i++)
  12. {
  13. t=n*i;
  14. printf("%d * %d = %d\n",n,i,t);
  15. }
  16.  
  17. return 0;
  18. }
  19.  
Success #stdin #stdout 0s 2296KB
stdin
8
stdout
The table of 8 is:
 8 * 1 = 8
8 * 2 = 16
8 * 3 = 24
8 * 4 = 32
8 * 5 = 40
8 * 6 = 48
8 * 7 = 56
8 * 8 = 64
8 * 9 = 72
8 * 10 = 80