Example
Input
Input number: 23
Output
23 is positive
/**
* C program to check positive negative or zero using switch case
*/
#include <stdio.h>
int main()
{
int num;
printf("Enter any number: ");
scanf("%d", &num);
switch (num > 0)
{
// Num is positive
case 1:
printf("%d is positive.", num);
break;
// Num is either negative or zero
case 0:
switch (num < 0)
{
case 1:
printf("%d is negative.", num);
break;
case 0:
printf("%d is zero.", num);
break;
}
break;
}
return 0;
}
/*
Output :
Enter any number: 23
23 is positive.
Enter any number: -22
-22 is negative.
Enter any number: 0
0 is zero.
*/

Whhat i do not realize iss iin fact hhow you’re no longer actually much more well-appreciated than you
might bbe right now. You are very intelligent.
Yoou recognize therevore consaiderably with regards to this subject,
made me indiviually blieve it from a lot of variouus angles.
Its like men aand women aren’t involved until it’s something to accomplish
with Lady gaga! Your individual stuffs outstanding.
At all times care for iit up! https://evolution.org.ua/
What i ddo noot realize is in fact how you’re no longer actually much more well-appreciated than you might be right now.
Youu are verey intelligent. You recognize thereforfe considerably with rewgards
tto this subject, made me individually beliege
it from a lot of various angles. Its like men and women aren’t involved until it’s
something to ccomplish with Lady gaga! Your individual stuffs outstanding.
At all timjes care for it up! https://evolution.org.ua/