fork download
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. int n,i=1;
  6. int res;
  7. //printf("Enter the number");
  8. scanf("%d",&n);
  9. while(i<=10)
  10. {
  11. res = n * i;
  12. printf("%d * %d = %d\n",n,i,res);
  13. i++;
  14. }
  15. return 0;
  16. }
  17.  
Success #stdin #stdout 0s 2296KB
stdin
4
stdout
4 * 1 = 4
4 * 2 = 8
4 * 3 = 12
4 * 4 = 16
4 * 5 = 20
4 * 6 = 24
4 * 7 = 28
4 * 8 = 32
4 * 9 = 36
4 * 10 = 40