Answered step by step
Verified Expert Solution
Link Copied!

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;

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Administration The Complete Guide To Dba Practices And Procedures

Authors: Craig S. Mullins

2nd Edition

0321822943, 978-0321822949

More Books

Students also viewed these Databases questions

Question

Identify possible reasons for ineffective performance.

Answered: 1 week ago

Question

3. How would you address the problems that make up the situation?

Answered: 1 week ago

Question

2. What recommendations will you make to the city council?

Answered: 1 week ago