//WAP to print the table of a number using "Do While Loop"//
#include<stdio.h>
#include<conio.h>
void main();
{
int i, n, t;
printf("Enter the number whose table is to be find out\n");
scanf("%d", &n);
i=1;
do
{
t=n*i;
i=i+1;
printf("%d\n", t);
}
while (i<=10);
getch();
}


Comments
Post a Comment