mirror of
https://github.com/System-End/APCSA.git
synced 2026-04-19 16:38:24 +00:00
17 lines
No EOL
394 B
Java
17 lines
No EOL
394 B
Java
/* Lesson 2 Coding Activity Question 2 */
|
|
|
|
import java.util.Scanner;
|
|
|
|
public class U3_L2_Activity_Two
|
|
{
|
|
public static void main(String[] args)
|
|
{
|
|
Scanner sc = new Scanner(System.in);
|
|
|
|
System.out.println("Please enter two numbers:");
|
|
double a = sc.nextDouble();
|
|
double b = sc.nextDouble();
|
|
|
|
System.out.println("Smallest is: " + Math.min(a, b));
|
|
}
|
|
} |