C program to print the multiplication table


/* C program to print the multiplication table. */


#include"stdio.h"

void main()

{

int i, num;
printf("Enter a number: ");
scanf("%d", &num);
printf("Multiplication table of %d is :\n", num);
for(i=1; i<=10; i++)
{
printf("%d x %d = %d \n", num, i, i * num );
}
printf("\n");

}

Output:



Comments

Popular Posts