Program to print squares of Numbers from 1-10

#include<stdio.h>
#include<conio.h>
void main()
{
   int i,sqr;
   clrscr();
   printf("\nPrint Squares of numbers from 1-10");
      for(i=1;i<=10;i++)
      {
      sqr=i*i;
      printf("\n\n%d",sqr);
      }
    getch();
}

Leave a Reply