Using an array write a program that asks for 10 numbers of type int stores it in an array and traversing each item counting the number of items that are greater than 5.

Recommended Answers

All 3 Replies

Please post the code you have so far. Even if if it does not much.

Then that would be your first step, wouldn't it? Writing out even a basic skeleton on a class and a main() function would at least give us code to discuss.

We will not write your program for you. Not only does it do you no good for us to simply hand you the code, it is against Daniweb policy. One of the forum rules states:

Do provide evidence of having done some work yourself if posting questions from school or work assignments

We cannot help you unless you do this. We are here to give advice, not provide free homework.

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.