Coding—
#include<stdio.h>
#include<conio.h>
void main ()
{
int a,b=0,i=1;
clrscr();
printf("Enter the number");
scanf("%d",&a);
while(i<=10)
{
b=a×i;
printf("%d \n",b);
i++;
}
getch();
}
OUTPUT—
Enter the number=2
2
4
6
8
10
12
14
16
18
20
#include<stdio.h>
#include<conio.h>
void main ()
{
int a,b=0,i=1;
clrscr();
printf("Enter the number");
scanf("%d",&a);
while(i<=10)
{
b=a×i;
printf("%d \n",b);
i++;
}
getch();
}
OUTPUT—
Enter the number=2
2
4
6
8
10
12
14
16
18
20
Comments
Post a Comment
Please Subscribe and Comments my blog site.