Computer Science, asked by hinaanwarahmad0, 11 months ago

write a program using scanner class to input 20 numbers and print smallest and biggest number inputted by user​

Answers

Answered by omprakashmalviya2000
8

Answer:

import java.util.scanner;

class Input

{

public static void main(String args[])

{

Scanner input = new Scanner(System.in);

int i;

int sum;

for (i = 0; i < 21; i += 1)

{

System.out.println("Enter "+ith+" number...");

sum += input.nextInt();

}

System.out.println("The sum of all numbers is... "+sum);

}

}

/*Hope it helped you...*/

/*Kindly Mark as Brainliest...*/

Similar questions