fork(1) download
  1. #include <stdio.h>
  2. int main()
  3. {
  4. int n, i, ans = 0;
  5. printf("Enter the number to generate the table of :\n");
  6. scanf("%d",&n);
  7. for(i=1; i<=10; i++)
  8. {
  9. ans = n*i;
  10. printf("%d\n", ans);
  11. }
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0s 9424KB
stdin
2
stdout
Enter the number to generate the table of :
2
4
6
8
10
12
14
16
18
20