Computer Science, asked by vivekviki81, 9 months ago

Write a programme to find smallest among 10 numbers

Answers

Answered by Anonymous
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