pls weite this programm i need its very urgent pls help me pls
Answers
Answer:
import java.util.Scanner;
class Smallest_Number
{
public static void main(string[] args)
{
//Declaration
Scanner input = new Scanner(System.in);
int a, b, c;
//Prompt and accept 3 numbers from user
System.out.println(“Enter three numbers: ”);
a = input.nextInt();
b = input.nextInt();
c = input.nextInt();
//Display the smallest of the three numbers
if (a < b && a < c)
{
System.out.println(“”The smallest number is = “ + a) ;
}
if (b < a && b < c)
{
System.out.println(“The smallest number is = ” + b);
}
if (c < a && c < b)
{
System.out.println(“”The smallest number is = “ + c);
}
}
}