WAP in C to generate the multiplication table of a particular inputted number.

 /*This program is to get the table of user inputed num*/

#include <stdio.h>

#include <conio.h>


int main()

{

int num, i;


printf("Enter a number: ");

scanf("%d", &num);

printf("Table of %d is: \n", num);


for (i = 1; i <= 10; i++)

{

printf("%d * %d = %d \n", num, i, num*i);

}

getch();

return 0;

}


Comments