Untitled
unknown
plain_text
a month ago
535 B
2
Indexable
Never
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); double num1 = scanner.nextDouble(); double num2 = scanner.nextDouble(); double num3 = scanner.nextDouble(); scanner.close(); double smallest = findSmallest(num1, num2, num3); System.out.println(smallest); } public static double findSmallest(double a, double b, double c) { return Math.min(Math.min(a, b), c); } }
Leave a Comment