Question: Given the following declaration: int total, count, result1; float result2; total = 5; count = 2; What is the value of result1 and result2

Given the following declaration: int total, count, result1; float result2; total = 5; count = 2; What is the value of result1 and result2 after executing the following Java statements? 1. result1 = total count; 2. result2 = (float) total / count
Step by Step Solution
There are 3 Steps involved in it
After executing the following Java statements result1 totalcount The division op... View full answer
Get step-by-step solutions from verified subject matter experts
