Exercise: rectangular - video
Exercise: rectangular
Write a program that computes the area of a rectangular.
- Start by having two hard coded values.
- Multiply them and print the result.
- Then change the code to prompt the user for two numbers.
- Multiply them and print the result.
- Further modify the program to warn if one of the sides given was negative.
Published on 2015-03-12
If you have any comments or questions, feel free to post them on the source of this page in GitHub. Source on GitHub.
Comment on this post