Skip to content

Instantly share code, notes, and snippets.

@parvezmrobin
Last active February 23, 2016 12:42
Show Gist options
  • Save parvezmrobin/bd0e8166eca6da639c60 to your computer and use it in GitHub Desktop.
Save parvezmrobin/bd0e8166eca6da639c60 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main(){
int n;
scanf("%d", &n);
if(n<0){
printf("%d is negative.", n);
}
else if(n>0){
printf("%d is positive.", n);
}
else{
printf("%d is zero.", n);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment