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.