Question: Create a column vector of 1 0 0 random integers from 1 to 5 0 , named A . ( i ) Use a loop

Create a column vector of 100 random integers from 1 to 50, named A.(i) Use a loop (for or while) to count the number of even elements of A.(ii) Count the number of even elements of A without using a loop and without using an if statement. Make a statement at the end (complete sentence) in which the number of even elements is stated.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!