mirror of
https://github.com/System-End/APCSA.git
synced 2026-04-19 19:55:17 +00:00
15 lines
373 B
Java
Executable file
15 lines
373 B
Java
Executable file
/* Lesson 1 Coding Activity Question 1 */
|
|
|
|
import java.util.Scanner;
|
|
|
|
public class U3_L1_Activity_One {
|
|
|
|
public static void main(String[] args) {
|
|
Scanner scan = new Scanner(System.in);
|
|
System.out.println("Please enter a double:");
|
|
double x = scan.nextDouble();
|
|
if (x == 12.345) {
|
|
System.out.println("YES");
|
|
}
|
|
}
|
|
}
|