Computer Science, asked by krishsoren, 5 hours ago

write a simple menu driven program in java​

Answers

Answered by TanishkaVerma00
2

Answer:

Import the Scanner.

Declare the class as public.

Add the void main function.

Add system. out. println() function with the message to enter choice.

Declare input as Scanner.

Take the inputs and save it in variables.

Add a Switch Statement.

Add the formula to calculate area.

Explanation:

plz mark me as brainlist

hope it HELPS..!!

Answered by irshadalisiddique
0

Answer:

java, we use these few keywords: while(true) → It makes sure your menu keeps re-appearing again and again until the case containing System. exit(0) is selected by user as choice. Since while condition is always true so control keeps on entering the while loop repetetively.

Explanation:

please Mark as brain list

please

please

please

Similar questions