What is the output of the following program ?


			  		

Loading

โœช Choose the correct option.

What is the output of the following program ?

class Modulus {
public static void main(String args[]) {
double a = 25.64;
int b = 25;
a = a % 10;
b = b % 10;
System.out.println(a + " " + b);
}
}

A. 5.640000000000001, 5
B. 5.640000000000001, 5.00
C. 5 , 5
D. None of these

Leave a Comment