technotip.com/7118/c-program-t...
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
technotip.com/6378/c-programmi...
C Programming: Beginner To Advance To Expert
technotip.com/6086/c-programmi...
Негізгі бет C Program To Count Positive, Negative and Zero without using Array
Пікірлер: 10