mirror of
https://github.com/System-End/APCSA.git
synced 2026-04-19 16:38:24 +00:00
21 lines
506 B
Java
21 lines
506 B
Java
/* Lesson 2 Coding Activity Question 4 */
|
|
|
|
import java.util.Scanner;
|
|
|
|
public class U3_L2_Activity_Four {
|
|
|
|
public static void main(String[] args) {
|
|
Scanner sc = new Scanner(System.in);
|
|
|
|
System.out.println("Enter two test scores:");
|
|
double a = sc.nextDouble();
|
|
double b = sc.nextDouble();
|
|
|
|
if (a < 0 || a > 100) {
|
|
System.out.println("Not Valid");
|
|
}
|
|
if (b < 0 || b > 100) {
|
|
System.out.println("Not Valid");
|
|
}
|
|
}
|
|
}
|