C Program To Count Positive, Negative, Even And Odd Numbers In An Array

Опубликовано: 11 Февраль 2025
на канале: Technotip
14,976
164

https://technotip.com/9161/c-program-...

Twenty-five numbers are entered from the keyboard into an array. Write a program to find out how many of them are positive, how many are negative, how many are even and how many odd.

Important Note
Most of the time 0 is considered as even number, as it has odd numbers on either side of it i.e., 1 and -1. And 0 is perfectly divisible by 2.

Also note that 0 is neither positive and nor negative.

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

C Programming: Beginner To Advance To Expert
https://technotip.com/6086/c-programm...

Join this channel to get access to perks:
   / @technotipdotorg