Write a program to display a menu showing options to do operations on a rectangle. The menu should be shown?

CONTINUES IN THE QUESTION =
till anyone enters FOUR to exit.The using options ought to be shown.On selecting the opportunity accept info from person and display the result
ONE PARTICULAR.Area
A COUPLE OF.Perimeter
SEVERAL.Diagnol
4.Exit

USE ONLY LOOPS…DONT WORK WITH STRINGS AND ALSO ARRAYS..PLEASE NOTIFY THIS ONE

You’re going to have to use strings so that they can print out and about the food selection.
So do that pseudo program code:

int foundation = 0;
int height = 0;
int userChoice = 0;
while (user haven’t entered 4)
present menu
ensure that they entered a legitimate menu number
in the event (user accessed 1)
inquire user for base as well as height
art print out calculated area

in the event (user accessed 2)
inquire user for base as well as height
art print out calculated perimeter

in the event (user accessed 3)
inquire user for base as well as height
art print out calculated diagonal

in the event (user accessed 4)
get out of program

Leave a Reply