Sunday, July 31, 2016

TABLE USING DO-WHILE- C Language

/*TABLE USING  DO-WHILE*/

#include<stdio.h>
#include<conio.h>

void main()
{
int i,j=1,c;
clrscr();
printf("\n Enter the no.::");
scanf("%d",&i);
do
{
c=i*j;
printf("\n%d",c);
j++;
}
while(j<=10);
getch();
}

/************************OUTPUT***************************
Enter the no.::
5
10
15
20
25
30
35
40
45
50*/

No comments:

Post a Comment