Pages

Write a program to print table of given number through Do-While loop.

Friday, 19 April 2013


#include<stdio.h>
#include<conio.h>
int main()
{
int counter=1,table=0;
printf("Enter a number to get table: ");
scanf("%d",&table);
do
{
printf("%d*%d=%d\n",table,counter,table*counter);
counter++;
}
while(counter<=10);
getch();
}
 

Search Box

Most Reading

Contact Form

Name

Email *

Message *