199k views
0 votes
Analyze the following code: int i = 3434: double d = 3434: System.out.printf("%5.1f %5.1f", I, d): A) i is an integer, but the format specifier %5.1f specifies a format for double value. The code has an error. B) The code complies and runs fine to display 3434.0 3434.0 C) The code complies and runs fine to display 3434 3434.0

User JugsteR
by
7.6k points

1 Answer

3 votes

Answer: C

Step-by-step explanation:

User Jalem
by
6.7k points