What will be the output of the following program?
class MyClass
{
public static void main(String s[])
{
int i = 34.0;
int j = 7;
int k = i % j;
System.out.println("k = " + k );
}
Answers
Answered by
0
Answer:
K = 4.85
Explanation:
i = 34
j = 7
k = i%7 (taking the reminder from 34/7) = 4.85
"K = 4.85"
Similar questions