Computer Science, asked by pranjaladitya, 8 months ago

write a program using scanner class two input 8 primitive types from the user and print the data entered by the user in a separate line​

Answers

Answered by satishmadhale
0

Answer:

please mark as brainlylist and follow

Explanation:

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);

}

}

Similar questions