public class EvenNumberPrinter { public static void main(String[] args) { Random generator = new Random(); int n = generator.nextInt(20) + 10; System.out.println("The total amount of numbers (n) = " + n); System.out.println("The even numbers from 0 to " + n + ":"); for (int i = 0; i < n; i++) if (i % 2 == 0) System.out.print(i + " "); } }
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment