Solved

Public Static Double Secret(int First, Double Second)

Question 34

Multiple Choice

public static double secret(int first, double second)
{
Double temp; if (second > first)
Temp = first * second;
Else
Temp = first - second; return temp;
}Based on the code in the accompanying figure, what would be the output of the following statement?System.out.println(secret(5, 7.0) ) ;


A) 5.0
B) 7.0
C) 2.0
D) 35.0

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions