Menus

Thursday, 30 January 2020

Write c program to print multiplication table of a number


#include<stdio.h>

void main()
{

int n,i;

printf("Enter number ");
scanf("%d",&n);


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

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

}


}





No comments:

Post a Comment