import java.util.;
public class Main {
public static void main(String args[]) {
Scanner sc= new Scanner(System.in);
int n=sc.nextInt();
double d= (n0.09);
// double roundOff = Math.round(d * 100.0) / 100.0;
System.out.println(d);
}
}
Choosing Number unable to understand error
logic is correct, just print the number only 2 digits after the decimal as given in the question.
1 Like