Answers for "take 10 number from user input for loop"

0

take 10 number from user input for loop

import java.util.Scanner;

public class ej1 {
    public static void main(String args[]) {

        int x;

        for (x = 1; x >= 0; ) {
            Scanner input = new Scanner(System.in);
            System.out.print("Type a number: ");
            x = input.nextInt();
        }
    }
}
Posted by: Guest on July-02-2021

Code answers related to "take 10 number from user input for loop"

Browse Popular Code Answers by Language