Exercise: rectangular - video

exercise

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.

Other pages

Solution: area prompt and warn - video
Solution: area of rectangular - video
Beginner Perl Maven video course - video

Author

Gabor Szabo (szabgab) Gabor Szabo