Program to print table of the numbers from 1 to 10

//Program to print table of the numbers from 1 to 10
#include<stdio.h>
#include<conio.h>
int main()
{
  int row, col;
  clrscr();
  printf("Table of 1 to 10 is as\n");
  for(row=1;row<=10;row++)
  {
    for(col=1;col<=10;col++)
    {
      printf("%4d",row*col);
    }
    printf("\n");
  }
  getch();
  return 0;
}


To Run this Program Copy it in text editor and save as .c
Then double click on it and then it will get opened in your compiler.
Click on run.



No comments:

Post a Comment