Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. (Display even numbers) Rewrite the above program to display the even numbers. In Java Please :) Source History E. ND 1 O import java.util.Scanner;
1. (Display even numbers) Rewrite the above program to display the even numbers.
In Java Please :)
Source History E. ND 1 O import java.util.Scanner; 2 public class ReverseEnteredNumbers { 3 public static void main(String[] args) { 4 Scanner input = new Scanner (System.in); 5 int[] numbers = new int[10]; 6 System.out.print("Enter " + numbers.length + 7 for (int i = 0; i =0; i--) { System.out.print (numbers[i] + " } System.out.println(""); 14 16 17 } 18 Output - LabManualsprograms (run) x run: Enter 10 integer numbers: 10 20 25 30 40 45 55 60 70 80 The reverse of entered numbers: 80 70 60 55 45 40 30 25 20 10 BUILD SUCCESSFUL (total time: 4 seconds)Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started