Computer Science, asked by srivastava19shiv, 3 months ago

write the program in java to entre 3 number and print the smaller number​

Answers

Answered by dhruvprasad26
0

Answer:

SmallestNumberExample5.java

import java.util.Scanner;

public class SmallestNumberExample5.

{

public static void main(String args[])

{

int num1, num2, num3;

System.out.println("Enter three integers: ");

Scanner in = new Scanner(System.in);

Answered by LuieCarter
1

Answer:

import java.util.*;

public class ClassName{

public static void main (String arg[]){

int a,b,c;

Scanner s = new Scanner(System.in);

a= s.nextint();

b= s.nextint();

c= s.nextint();

if(a<b && a<c)System.out.print(a +" Smallest");

if(b<a && b<c)System.out.print(b +" Smallest");

if(c<a&& c<b)System.out.print(c+" Smallest");

}

}

PLEASE MARK BRAINLIEST

Similar questions