Question: What is the correct code in C? Write a program that keeps taking integers until the user enters -100. In the end, the program should
What is the correct code in C?
Write a program that keeps taking integers until the user enters -100. In the end, the program should display the count of positive, negative (excluding that -100) and zeros entered. Sample Input/Output 1: Input the number: -100 Number of positive numbers: 2 Number of Negative numbers: 3 Number of Zero: 1 Sample Input/Output 2: Input the number: -100 Number of positive numbers: 0 Number of Negative numbers: 0 Number of Zero: 1 Privacy - 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
