======================
Code:
=======================
import java.util.Scanner;
public class Test34_Pereda_forloop {
public static void main(String [] args) {
Scanner input = new Scanner(System.in);
int i, nums;
for(i=1; i<=5; i++){
System.out.print("Enter a number: ");
nums = input.nextInt();
System.out.println("The number you entered: " +nums);
}
input.close();
}
}
Walang komento:
Mag-post ng isang Komento