Program to find area of square in c language.
#include<stdio.h>
#include<conio.h>
void main()
{
int side,area;
clrscr();
printf("enter the side of square=");
scanf("%d",&side);
area=side*side;
printf("the area of square is =%d",area);
getch();
}
■) Output->
Comments
Post a Comment