Write a programme to find smallest among 10 numbers
Answers
Answered by
4
Correct question :
Write a program to find smallest among 10 numbers
Answer:
import java.util.*;
public class Smallest_ Number
{
public static void main(String args[])
{
Scanner in=new Scanner(System.in);
int a,b,c,d,e,f,g,h,i,j,k;
System.out.println("Enter the numbers");
a=in.nextInt();
b=in.nextInt();
c=in.nextInt();
d=in.nextInt();
e=in.nextInt();
f=in.nextInt();
g=in.nextInt();
h=in,nextInt();
i=in.nextINT();
j=in.nextInt();
k=Math,min(a,b,c,d,e,f,g,h,i,j);
System.out.println("The smallest number is="+k);
}
}
For more java programmings follow the given links.:
brainly.in/question/14797688
brainly.in/question/16088835
brainly.in/question/16195360
Similar questions
Science,
4 months ago
Math,
4 months ago
Physics,
9 months ago
Social Sciences,
9 months ago
Physics,
1 year ago
Computer Science,
1 year ago
Chemistry,
1 year ago