Write a program that reads an unspecified number of integers. Keep
track
of how many positive and how many negative numbers are entered. The
input
terminates when the user enters 0. Display the count and the average of
the
positive numbers and the count and the average of the negative numbers.
Print the averages as floating point numbers. Use Scanner to get input.
nammi_aqua 0 Newbie Poster
masijade 1,351 Industrious Poster Team Colleague Featured Poster
server_crash 64 Postaholic
jwenting 1,889 duckman Team Colleague
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.