Computer Science, asked by DakshRathod17, 11 months ago

Write a C program to calculate area of square.

Answers

Answered by aashish3072
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 Soñador
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