Saturday, 30 August 2014

Write a program to find the area of a square.

SOURCE CODE

//WAP to find the area of the square.

#include<stdio.h>
#include<conio.h>
void main()
{
    int a, area ;
    printf("AREA OF SQUARE\n\n") ;
   printf("Enter the side of the square : ") ;
   scanf("%d", &a) ;
   area=a*a ;
   printf("\n\nThe area of the square is : %d", area) ;
   getch() ;
}


SCREENSHOT


No comments:

Post a Comment