Question: hi does anyone know why this happen ? Wr ite a single statement that pr ints outside Temperature with 2 decimals. End with newline. Sample
hi does anyone know why this happen ?
Wr ite a single statement that pr ints outside Temperature with 2 decimals. End with newline. Sample output: 103.46 1 public class OutsideTemperatureFormatting ( 2 public static void main (String [] args) f 4 double outsideTemperature 1 test passed outsideTemperature - 103.46432; printf(".2f", outsideTemperature); Your solution goes here/ All tests passed 9 10 Run Failed to compile OutsideTemperatureFormatting.java:6: error: cannot find symbol printf("%.2f ", out sideTemperature); symbol: method printf (String,double)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
