Case 1. Input. Positive.Case 2. Input. -13. Negative.Case 3. Input. Neither positive nor negative. Program. Example. #include<stdio.h> int main() { int num; scanf("%d",&num); if(num == 0) printf("Neither positive nor negative"); else if(num < 0) printf("Negative"); else printf("Positive"); return 0; }
Copyright © 2024 EHUB.TIPS team's - All rights reserved.
Answers & Comments
Case 1. Input. Positive.Case 2. Input. -13. Negative.Case 3. Input. Neither positive nor negative. Program. Example. #include<stdio.h> int main() { int num; scanf("%d",&num); if(num == 0) printf("Neither positive nor negative"); else if(num < 0) printf("Negative"); else printf("Positive"); return 0; }