Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.javarush.test.level04.lesson06.task01;
- /* Минимум двух чисел
- Ввести с клавиатуры два числа, и вывести на экран минимальное из них.
- */
- import java.io.*;
- public class Solution
- {
- public static void main(String[] args) throws Exception
- {
- BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
- int a = Integer.parseInt(reader.readLine());
- int b = Integer.parseInt(reader.readLine());
- if(a>b){
- System.out.println(b);
- }
- else
- System.out.println(a);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement