C++ Programs & Stuffz

Nothing like anything!!!

Please Click on ADS!!

Please Click on the above ads given by GOOGLE , so that I can maintain my blog!!

Tuesday, August 31, 2010

Find the area of a square

//pgm to find the area of a square
#include<iostream.h>
#include<conio.h>
void main()
{
    float a,area;
    clrscr();
    cout<<"enter the side length of the square";
    cin>>a;
    area=a*a;
    cout<<"area="<<area;
    getch();
}

0 comments:

Post a Comment

free counters