fork download
  1. import java.util.Scanner;
  2. public class Jtutorial1 {
  3. public static void main(String args[]){
  4. Scanner input = new Scanner(System.in);
  5.  
  6. System.out.println(“How much does Employee 1 make?);
  7. double emp1 = input.nextInt();//emp1 wage
  8.  
  9. System.out.println(“How much does Employee 2 make?);
  10. double emp2 = input.nextDouble();//emp2 wage
  11.  
  12. System.out.println(“How much does Employee 3 make?);
  13. double emp3 = input.nextDouble();//emp3 wage
  14.  
  15. if(emp1 > emp2 && emp1 > emp3)
  16. {
  17. System.out.println(“emp1 makes the most”);
  18. }
  19. else if(emp1 emp3)
  20. {
  21. System.out.println(“emp2 makes the most”);
  22. }
  23. else if(emp1 < emp2 && emp2 < emp3)
  24. {
  25. System.out.println("emp3 makes the most");
  26. }
  27. else
  28. {
  29. System.out.println("an error occurred");
  30. }
  31. }
  32. }
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty