Write a program to display the table of given number

#include<stdio.h>
#include<conio.h>
int main()
{
int i,j,no,ans;
printf("enter number");
scanf("%d",&no);
for(i=1;i<=10;i++)
{
ans=no*i;
printf("\n%d * %d = %d",no,i,ans);
}
}

No comments:

Post a Comment