It's showing
The program must display minimum of two integers.I'm getting the correct answer during verification as well.
package com.codegym.task.task04.task0418;
/*
Minimum of two numbers
*/
import java.io.*;
import java.util.Scanner;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
Scanner scan = new Scanner(System.in);
int a = scan.nextInt();
int b = scan.nextInt();
if(a < b)
{
System.out.println(a);
}
else if (a == b)
{
System.out.println(b);
}
}
}