Code:
#include <stdio.h>
int main()
{
int n, i;
printf("Enter a Number ");
scanf("%d",&n);
for(i=1; i<=10; ++i)
{
printf("%d * %d = %d \n", n, i, n*i);
}
getch();
}
Output:
The Tech Platform
#include <stdio.h>
int main()
{
int n, i;
printf("Enter a Number ");
scanf("%d",&n);
for(i=1; i<=10; ++i)
{
printf("%d * %d = %d \n", n, i, n*i);
}
getch();
}
The Tech Platform
コメント