answersLogoWhite

0

This smells like homework, so I won't give you any actual code. Rather, I'll give you some pseudo-code for the function that returns the area:

calcarea (decimal width, decimal length)

return width * length

P.S., jeez, it's not that hard to do your homework, is it?

User Avatar

Wiki User

14y ago

Still curious? Ask our experts.

Chat with our AI personalities

EzraEzra
Faith is not about having all the answers, but learning to ask the right questions.
Chat with Ezra
RafaRafa
There's no fun in playing it safe. Why not try something a little unhinged?
Chat with Rafa
LaoLao
The path is yours to walk; I am only here to hold up a mirror.
Chat with Lao
More answers

#include<iostream>

using namespace std;

int main()

{

int side,area;

cout<<"Please,Enter the length of the square side : ";

cin>>side;

area=side*side;

cout<<"The square's area is = "<<area<<endl;

return 0;

}

User Avatar

Wiki User

15y ago
User Avatar

What sort of square do you want to make.

Tri square

"T" square

Round square

User Avatar

Wiki User

14y ago
User Avatar

by using \xdb

User Avatar

Wiki User

14y ago
User Avatar

Add your answer:

Earn +20 pts
Q: Write a program for area of square in c?
Write your answer...
Submit
Still have questions?
magnify glass
imp