Skip to content

Instantly share code, notes, and snippets.

@ThePratikSah
Created July 17, 2017 13:32
Show Gist options
  • Save ThePratikSah/36e7681c6f536fb10c8aac070c83a230 to your computer and use it in GitHub Desktop.
Save ThePratikSah/36e7681c6f536fb10c8aac070c83a230 to your computer and use it in GitHub Desktop.
/*
Author: Pratik Sah
Date: 01-04-17
*/
main(){
int n;
printf("Enter any number:");
scanf("%d", &n);
if (n<0)
printf("-ve number.");
else
if (n>0)
printf("+ve number.");
else
printf("Zero.");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment