Write a C program to calculate area of square.
Answers
Answered by
12
Explanation:
int main() {
int side, area;
printf("\nEnter the Length of Side : ");
scanf("%d", &side);
area = side * side;
printf("\nArea of Square : %d", area);
return (0);
Answered by
5
Answer:
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
float side, area;
cout<<"\nEnter side of square";
cin>>side;
area=side*side;
cout<<"\nArea of square is "<<area;
getch();
}
Similar questions
Social Sciences,
5 months ago
English,
5 months ago
Social Sciences,
5 months ago
Biology,
11 months ago
Math,
11 months ago
Math,
1 year ago
India Languages,
1 year ago