Display the multiplication table of a number upto 10.

  #include <stdio.h>

int main(void)
{
int cnt, num;

cnt = 1;

printf("\nEnter a number :");
scanf("%d", &num);

do
{
printf("\n%d X %d = %d", num, cnt, num * cnt);
cnt++;
}while(cnt <= 10);

return 0;
}