diff --git a/src/main/java/Unit3/U3_L5_Activity_One.java b/src/main/java/Unit3/U3_L5_Activity_One.java new file mode 100644 index 0000000..5e4a60f --- /dev/null +++ b/src/main/java/Unit3/U3_L5_Activity_One.java @@ -0,0 +1,18 @@ +/* Lesson 5 Coding Activity Question 1 */ +package Unit3; +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(); + double ratio = x / y; + if (ratio <= 8 && ratio > 1) + System.out.println("Ratio OK"); + + scan.close(); + } +}