0
I still fail test case 2 and 4 in Kaleidoscope.why?
import java.util.Scanner; public class Program { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int nos=sc.nextInt(); int co=(nos*5); double pro=(co-(co*0.1)); double res=(pro+(pro*0.07)); double res1=(co+(co*0.07)); if(nos>1) System.out.println(res); else System.out.println(res1); } }
1 Resposta
+ 3
Task is required to output result in "rounded-up" to 2 decimal places also...