CODING:
import java.util.Scanner;
class mini
{
public static void main(String[] args)
{
Scanner s=new Scanner(System.in);
System.out.print("Entre Number Of A:");
int a=s.nextInt();
System.out.print("Entre Number Of B:");
int b=s.nextInt();
System.out.print("Entre Number Of C:");
int c=s.nextInt();
System.out.println("Minimum Number is:" + ((a<b) ? ((a<c) ? a : c) : ((b<c) ? b :c)));
}
}
class mini
{
public static void main(String[] args)
{
Scanner s=new Scanner(System.in);
System.out.print("Entre Number Of A:");
int a=s.nextInt();
System.out.print("Entre Number Of B:");
int b=s.nextInt();
System.out.print("Entre Number Of C:");
int c=s.nextInt();
System.out.println("Minimum Number is:" + ((a<b) ? ((a<c) ? a : c) : ((b<c) ? b :c)));
}
}
Comments
Post a Comment