Answer the question
In order to leave comments, you need to log in
How to describe in code so that the desired case is selected by the entered word in the Java console?
There are three formulas. Calculate the area of a square, circle, triangle.
I want to make a general class in which to describe the choice of a particular shape.
When you start the program, you need the console to set the message "Enter the name of the figure."
Next, I write, for example, "Square".
And already further my formulas for calculation were offered.
How to create a variable that would take the values entered from the console, how is it done?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question