C Program to Generate Multiplication Table


SUBMITTED BY: kaushal1981

DATE: Feb. 23, 2017, 7:07 a.m.

FORMAT: Text only

SIZE: 219 Bytes

HITS: 1168

  1. #include <stdio.h>
  2. int main()
  3. {
  4. int n, i;
  5. printf("Enter an integer: ");
  6. scanf("%d",&n);
  7. for(i=1; i<=10; ++i)
  8. {
  9. printf("%d * %d = %d \n", n, i, n*i);
  10. }
  11. return 0;
  12. }

comments powered by Disqus