Print Table of n and Square of n
#include<stdio.h>
#include<conio.h>
void main()
{
int n;
printf("No\t Square\n");
printf("-----------------n");
for(n=1;n <=10;n++)
printf("%d\t%d\n",n,n*n);
getch();
}
Output :
No Square
-------------
1 1
2 4
3 9
4 16
5 25
6 36
7 49
8 64
9 81
10 100
Incoming search terms:

About the author: Pritesh View all posts by Pritesh
My name is Pritesh Taral. I am working in well known MNC. as Java Developer. I am part time blogger loves writing articles on C/C++. I am active on facebook using community fan page .One can Visit me @ Facebook
Facebook Fan Page