answersLogoWhite

0


Best Answer

Loop through each array element; if it is even, print it out. The details, of course, will vary depending on the language; so I give it to you here in pseudocode:

for i = 1 to (size of myArray)

{

if myArray(i) % 2 = 0

print myArray(i)

}

A syntax similar to "number % 2" is used in many languages to get the remainder of a division by zero. This lets you check whether the number is even (if the remainder is zero) or not.

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you display all even no in an array?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Accept 5 numbers in an array and display it?

Accept 5 numbers in an array and display it.


Program to print all the even numbers of an array in visual basic?

find even number in array


How to display the content of memory address stored in an element of an array?

void *array[2]; printf ("array[%d]=%p\n", i, array[i]);


What do display cabinets hold on the inside?

These cabinets, which come in a vast array of sizes, can be designed to hold ... There are special display cases to hold trophies, flags, guns and even swords. ... also come with glass on all four sides or with a mirror on the inside. ...


How do you display 15 numbers in an ascending order using an array?

Sort the array then traverse the array, printing the element values as you go.


Five letter word for orderly display?

Array


What is another word for fanfare?

Array, display, or pageantry


What rhymes with gourmet?

dismay, array, display, valet...


What is a synonym and antonym of array?

Synonyms for array are display, arrangement, line up, or collection. Antonym is the opposite: disarray, random.


How do you write a program to read set of numbers using by an array and display the ascending order of the given input numbers?

To write a C++ program to display the student details using class and array of object.


Synonym for array?

Batch, bunch, bundle, cluster, design, display, lineup, pattern, or supply. Those words mean array.


Prog to display array element?

Java solutionFortunately, Java has a number of useful functions in the java.util.Arrays class for us.A call to...System.out.println(java.util.Arrays.toString(array));...will print out any array.