Write a program that reads an unspecified number of integers. Keep
of how many positive and how many negative numbers are entered. The
terminates when the user enters 0. Display the count and the average of
positive numbers and the count and the average of the negative numbers.
Print the averages as floating point numbers. Use Scanner to get input.
All 3 RepliesReply to this topic
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.