Question: Write a java program which will produce the following output. No variables are needed but the program must use numbers and math operators for all
Write a java program which will produce the following output. No variables are needed but the program must use numbers and math operators for all the results. In other words, you cannot simply include all the answers inside the quotes. The calculations must be done by the computer.
My age is 21
Twice my age is 42
Three times my age is 63
Half of my age is 10.5
My gpa is 3.3
Half my gpa is 1.65000000000
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
