C Program To Count Positive, Negative and Zero without using Array

http://technotip.com/7118/c-program-to-count-positive-negative-and-zero-without-using-array/ Lets write a C program to enter number till the user wants. At the end it should display the count of positive number, negative number and zeros entered, without using arrays. Note: Any number greater than 0 is positive.…

0
(0)

http://technotip.com/7118/c-program-to-count-positive-negative-and-zero-without-using-array/

Lets write a C program to enter number till the user wants. At the end it should display the count of positive number, negative number and zeros entered, without using arrays.

Note:
Any number greater than 0 is positive.
Any number less than 0 is negative.

Expected Output for the Input
User Input:
Enter the limit
5
Enter 5 numbers
0
5
3
2
-1

Output:
Positive Numbers: 3
Negative Numbers: 1
Number of zero: 1

C Programming Interview / Viva Q&A List
http://technotip.com/6378/c-programming-interview-viva-qa-list/

C Programming: Beginner To Advance To Expert
http://technotip.com/6086/c-programming-beginner-to-advance-to-expert/

0 / 5. 0

Leave a Reply