Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // 0 or positive ? negative
- #include <stdio.h>
- int main() {
- int num;
- scanf_s("%d", &num);
- printf("%d is %s", num, num >= 0 ? "num is 0 or positive" : "num is negative");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement