My problem has to do with uploading it to the server.
Program Code
import java.util.Scanner;
public class Divider {
public static void main(String[] args) {
Scanner reader = new Scanner(System.in);
// Implement your program here. Remember to ask the input from user.
System.out.print("Type a number: ");
int num1 = Integer.parseInt(reader.nextLine());
System.out.print("Type another number; ");
int num2 = Integer.parseInt(reader.nextLine());
double result = (double)num1 / (double)num2;
String display = "Division: 3 / 2 = ";
System.out.println(display + result);
}
}
Below is my Green Button Results
compile:
run:
Type a number: 3
Type another number; 2
Division: 3 / 2 = 1.5
BUILD SUCCESSFUL (total time: 8 seconds)