1. Engineering
  2. Computer Science
  3. i know the answer would be 50 but can you...

Question: i know the answer would be 50 but can you...

Question details

2. What value is assigned to x when y is 10.0? if (y < 15.0) if (y >= 0.0) x=5*y; else x=2*Y; else
I know the answer would be 50 ,but can you illustrate how the 2 else's are working in this program and to what if are they connected?
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution