0

What's wrong in this program?

HoverCraft program of codecoach https://code.sololearn.com/cbZzLctlT50h/?ref=app

16th May 2020, 9:55 AM
Vibha k 1TJ16CS113
Vibha k 1TJ16CS113 - avatar
3 Respuestas
+ 1
import java.util.*; public class Program { public static void main(String[] args) { Scanner sc=new Scanner(System.in); long a=21000000; int in=sc.nextInt(); if(in*3000000>a) System.out.println("Profit"); else if(in*3000000==a) System.out.println("Broke Even"); else System.out.println("Loss"); } }
16th May 2020, 9:57 AM
Souptik Nath
Souptik Nath - avatar
+ 1
Check this one. Copy and paste it.
16th May 2020, 9:57 AM
Souptik Nath
Souptik Nath - avatar
0
Hey?.
18th May 2020, 9:17 AM
Hwibzfwozn