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

MaxineMaxine
I respect you enough to keep it real.
Chat with Maxine
SteveSteve
Knowledge is a journey, you know? We'll get there.
Chat with Steve
ViviVivi
Your ride-or-die bestie who's seen you through every high and low.
Chat with Vivi
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