Skip to content

Commit

Permalink
feat(3.5.1): Finished U3_L5_Activity_One
Browse files Browse the repository at this point in the history
  • Loading branch information
101zh committed Oct 14, 2023
1 parent 6e21f5d commit f6c50b6
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/main/java/Unit3/U3_L5_Activity_One.java
Original file line number Diff line number Diff line change
@@ -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();
}
}

0 comments on commit f6c50b6

Please sign in to comment.