Input :-
Output :-
Code :-
#include <stdio.h>
int main()
{
int n,i=1;
printf("Enter a number :");
scanf("%d",&n);
while (i<=10)
{
printf("%d * %d = %d \n", n, i, n*i);
i++;
}
}
Output :-
Code :-
#include <stdio.h>
int main()
{
int n,i=1;
printf("Enter a number :");
scanf("%d",&n);
while (i<=10)
{
printf("%d * %d = %d \n", n, i, n*i);
i++;
}
}
0 Comments:
Post a Comment