Question: Assume that d is a double variable. write an if statement that assigns d to the int variable i if the variable in d is
Assume that d is a double variable. write an if statement that assigns d to the int variable i if the variable in d is not larger than the maximum value for an int.
I am trying to include this loop in a program or code
if (d <= Integer.MAX_VALUE) I = (int) d;
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
