Question: Evaluate the following code to determine the output rounded up to the nearest place after 2 nd decimal.float p = 7 . 2 f ,

Evaluate the following code to determine the output rounded up to the nearest place after 2nd decimal.float p =7.2f, q =4.1f; p = p *2.5f - q /2; q = p + q *1.5f; System.out.println(q);

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!