Twitter Feed Facebook Google Plus Youtube

Adsense responsive

Recent Post below header

Wednesday 30 January 2013

C PROGRAM: TO PRINT TABLE OF ANY NUMBER UPTO N

CODING:
#include<stdio.h>
#include<conio.h>
void main( )
{
int num,n,i,mul;

clrscr( ); 
printf("Table of  ");           /*table of which number*/
scanf("%d",&num);
printf("Upto ");                /*table upto which number*/
scanf("%d",&n);
for(i=1;i<=n;i++)
{
 mul=num*i;
 printf("\n%d * %3d = %d",num,i,mul);
}
getch( );
}

CODING

OUTPUT


 For any query or suggestion please comment below....

No comments:

Post a Comment