Question: Using java code Question 3: Write a program to read a sequence of numbers ending the value 0 and print how many were positive numbers

Using java code  Using java code Question 3: Write a program to read a

Question 3: Write a program to read a sequence of numbers ending the value 0 and print how many were positive numbers and how many were negative numbers. Use a for loop. For example, if the user enters 10-20-34620 The program will display: Number of positive numbers 4 Number of negative numbers 2

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 Databases Questions!