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


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 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]);


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.


What is another word for fanfare?

Array, display, or pageantry


Five letter word for orderly display?

Array


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.


What is a sentence with the word array?

As a verb: If you array the samples in order of color, it will make a pleasing display. As a noun: The beautiful array of silver bracelets made my choice very difficult.


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.


How do you write a program in C to find and display the sum of each row and column of a 2 dimensional array of type float?

array type


Is it necessary to read or display the elements of an array in order of its subscripts?

By no means; you can access any random array element. If you have ever seen examples which process them in order, it is because of the following: when the order doesn't matter (for example, you want to calculate the sum of all the array elements), it is easiest to process them in order.