C & C++ language
Home
HTML
C&C++ language
Movies
Games
Softwares
Sunday, 15 January 2012
printing a table in C language.....
#include
#include
void main()
{
int i,j,ans;
clrscr();
for(i=1;i<=5;i++)
{
for(j=1;j<=10;j++)
{
ans=i*j;
printf("%d*%d=%d",i,j,ans);
printf("\n");
}
printf("\n");
}
getch();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment