technotip.com/...
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
technotip.com/...
C Programming: Beginner To Advance To Expert
technotip.com/...
Join this channel to get access to perks:
/ @technotipdotorg
Негізгі бет C Program To Count Positive, Negative, Even And Odd Numbers In An Array
Пікірлер: 3