Write a driven menu program that displays the following options: Choose one of t
ID: 3620887 • Letter: W
Question
Write a driven menu program that displays the following options:Choose one of the following options:
1.Enter he so a,b,c
2.S=a^3+b^2+c
3.Exit
Choose 1:
Print the form input a,b,c
print a,b,c
Choose 2:
Print S with a,b,c entered.
example:a=1,b=2,c=3===>S=8
Note:
If you choose 1 first it is easily but if you choose 2 first ,i think it is not easily in order to code .
I want if you choose 1 or choose 2 first,it will run correctly.
(If i give float a=0,b=0,c=0,S;) It will work correctly but i don't want give a,b,c value