/* if-else-if write a program that reads an int and checks if its positive, negative or zero */ #include int main(){ int num; printf("enter int\n"); scanf("%d",&num); if(num>0){ printf("%d positive\n",num); } else if(num<0){ printf("%d negative\n",num); } else{ printf("%d zero\n",num); } return 0; }