mirror of
https://github.com/System-End/APCSA.git
synced 2026-04-19 16:38:24 +00:00
14 lines
393 B
Java
14 lines
393 B
Java
/* Lesson 5 Coding Activity Question 1 */
|
|
|
|
import java.util.Scanner;
|
|
|
|
public class U3_L5_Activity_One {
|
|
|
|
public static void main(String[] args) {
|
|
Scanner scan = new Scanner(System.in);
|
|
System.out.println("Enter 2 integers:");
|
|
int x = scan.nextInt();
|
|
Double y = scan.nextDouble();
|
|
if (x / y > 1 && x / y <= 8) System.out.println("Ratio OK");
|
|
}
|
|
}
|