#include <stdio.h> int main(void) { int num; printf("Enter an integer: "); scanf("%d", &num); if(num < 0) printf("num is negative."); if(num > -1) printf("num is non-negative."); return 0; }