Question: int i = 3 4 3 4 ; double d = 3 4 3 4 ; System.out. printf ( % 5 . 1 f
int ; double ;
System.out. printff i d;
The code compiles and runs fine to display
The code compiles and runs fine to display
is an integer, but the format specifier specifies a format for double value. The code has an error.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
