#include<stdio.h>
#include<conio.h>
void main()
{
int n,t=1,value;
clrscr();
printf("Enter any +ve number\n");
scanf("%d",&n);
while(t<=10)
{
value=n*t;
printf("\n%d * %d =%d",n,t,value);
t++;
}
getch();
}
OUTPUT:
Enter any +ve number
3
3 * 1 =3
3 * 2 =6
3 * 3 =9
3 * 4 =12
3 * 5 =15
3 * 6 =18
3 * 7 =21
3 * 8 =24
3 * 9 =27
3 * 10 =30
No comments:
Post a Comment