Respuesta :
Answer:
System.out.printf("%.2f%n",outsideTemperature);
Explanation:
The printf is for the formatting.
%.2f is for the 2 decimal places
%n is for the new line.
![Ver imagen DarthVaderBarbie](https://us-static.z-dn.net/files/d8d/c7e80b6be29d1dfc36c807879fee4f90.jpg)
Following are the program to the given question:
Program Explanation:
- Import package.
- Defining a class "Main".
- Inside the class defining the main method.
- Defining a double variable "outside_Temperature" that uses a Scanner class object that inputs the value.
- In the last step, use a print method that prints two decimal points values.
Program:
import java.util.*;//import package
public class Main //defining a class Main
{
public static void main(String[] arxb)//defining a main method
{
Scanner inxr = new Scanner(System.in);//creating Scanner class object
double outside_Temperature=inxr.nextDouble();//defining a double variable that inputs double value
System.out.printf("%.2f\n", outside_Temperature);//print two decimal points value
}
}
Output:
Please find the attached file.
Learn more:
brainly.com/question/10897239
![Ver imagen codiepienagoya](https://us-static.z-dn.net/files/df5/e3bf5d7feac0a59a9f608409a45c23e0.jpg)