How to solve this problem?

Generate 200 integer random numbers in the range (1000,9999) in an one-dimensional array x. Then determine:-

a) How many of these fall in the ranges 1000-2499 and 2500-4999;
b) How many of these are (a) even numbers and (b) divisible by 5
c) Sort and display the numbers in ascending order of magnitude

Recommended Answers

All 2 Replies

hi
i didnt found any solution here
hw u solve the prob
if u tell others can study the prob and they can get the logic

i manage to solve it yesterday nite. Thanx.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.