NBA - Boston Celtics

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