Skip to main content

Program to take number from user and print table of that number.

 Program to take number from user and print table of that number.


CODE

👇

  1. #include<stdio.h>
  2. #include<conio.h>

  3. void main()
  4. {
  5.     int i, n;

  6.     printf("Enter number : ");
  7.     scanf("%d", &n);

  8.     for(i = 1; i <= 10; i++)
  9.         printf("%d × %d = %d\n", n, i, n*i);
  10. }

Excute