Question: Write a program that will read 10 integers from the user into array num. your program should count number of Positive integers and negative integers
Write a program that will read 10 integers from the user into array num. your program should count number of Positive integers and negative integers and zeros and print it on screen. Sample Output: Enter 10 integers: 1 -2 0 3 8 -2 -7 0 7 0 Number of Positive integers : 4 Number of Negative integers : 3 Number of zeros :3 3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
