Tuesday, June 28, 2011

C Program to show a table of any number using function

#include<stdio.h>
#include<conio.h>

void main()
{
void table();
clrscr();

table();
getch();
}
void table()
{
int n,i,r;
printf("enter a no to know table: ");
scanf("%d",&n);
for(i=1;i<=10;i++)
{
r=n*i;
printf("%d*%d=%d\n",n,i,r);
}
}

1 comment:

  1. Bhai apne program ki 14th line delete kar do fir yeh program sahi ho jayega

    ReplyDelete