The C Programs
An ultimate blog where you can find almost all C programs.....!!
Pages
Home
Contact Us
Tuesday 22 May 2012
C program to print table of a given number
#include<stdio.h>
#include<conio.h>
void main()
{
int i,n;
clrscr();
//to clear the screen
printf("Enter any number:");
scanf("%d",&n);
printf("Table of %d is:\n",n);
for(i=1;i<=10;++i)
printf("\n%d*%d=%d",n,i,n*i);
getch();
//to stop the screen
}
C program to print table of a given number
2012-05-22T12:52:00-07:00
Neeraj Mishra
loop|
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)