[try Beta version]
Not logged in

 
Area and Perimeter Rectangle

Dec 19, 2016 at 7:56pm
You will be given two sides of a rectange (a,b). Calculate and show the area and the perimeter of it.
Input specification
You will be given the two integers a and b where 1 ≤ (a, b) ≤ 5000

Output specification
Calculate and show the area and the perimeter of the given rectangle.

Sample Input I
5 2
Sample Output I
10 14

any help with this?
Dec 19, 2016 at 8:19pm
Any code? Ask when you have a question or problem.
Dec 20, 2016 at 1:49am
OP: even if you have trouble putting anything down in actual code at least attempt the pseudocode. This will help clarify your own thinking and give the board some basis to help you further
https://en.wikipedia.org/wiki/Pseudocode
Topic archived. No new replies allowed.