Write a cpp program to calculate area of a square?

#include<iostream.h>
#include<conio.h>
void main()
{
 clrscr();
int s;  cout<<"Enter side of square: ";
 cin>>s;
 cout<<"Area of square is: "<<s*s;
 getch();
}

Ourput:


Comments

Popular posts from this blog

Larch Soft Pvt. Ltd. - Best Website & Hosting Provider