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
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
Get step-by-step solutions from verified subject matter experts
