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

Опубликовано: 08 Октябрь 2024
на канале: Technotip
1,368
12

http://technotip.com/7127/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, using Ternary Operator or Conditional Operator and without using arrays.


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

C Programming Interview / Viva Q&A List
http://technotip.com/6378/c-programmi...

C Programming: Beginner To Advance To Expert
http://technotip.com/6086/c-programmi...