Click here to Skip to main content
15,920,896 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
write a program that will enter the length and width of the rectangle.
then compute and display the area and perimeter of the rectangle. use function with parameter
Posted

You should really read a tutorial on C++ functions, see, for instance this: "Functions (I)" at cplusplus.com[^].
 
Share this answer
 
For C++ newbies (like you), I recommend them to watch the following video tutorial series (very-short videos) and then buy a C++ and read.
http://thenewboston.org/list.php?cat=16[^]

The answer regarding your question is covered in the 10th tutorial:
http://thenewboston.org/watch.php?cat=16&number=10[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900