0
What is the answer of system.out.println(9f/4)
don't know
3 Respostas
+ 1
ERROR 1:- S should be capital
ERROR 2:- Semicolon is missing.
OUTPUT:- 2.25 because 9f/4 means float value of 9/4 which is 2.25.
0
First, 9 is interpreted as a float, because of the "f", so you actually have 9.0/4, which evaluates to 2.25
- 1
2.
for accurate answer try this.
System.out.println((double)9/4);