//Table formation
using do while loop
#include<stdio.h>
#include<conio.h>
void
main()
{
int
i=1,n;
clrscr();
printf("\n\nTable
for\n");
scanf("%d",&n);
printf("Table
is\n");
do
{
if(i!=10)
{
printf("%d * %d = %d\n",n,i,n*i);
}
else
{
printf("%d * %d = %d\n",n,i,n*i);
}
i++;
}
while
(i<=10);
getch();
}
No comments:
Post a Comment
Note: only a member of this blog may post a comment.