Skip to content

Instantly share code, notes, and snippets.

@raiyansarker
Created March 4, 2023 02:48
Show Gist options
  • Save raiyansarker/669e7aa1d5e739ca84e292298753100d to your computer and use it in GitHub Desktop.
Save raiyansarker/669e7aa1d5e739ca84e292298753100d to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main() {
int number;
printf("Enter the Number : ");
scanf("%d",&number);
if (number == 0) printf("The number is zero.");
if (number < 0) printf("The number is negative");
if (number > 0) {
if (number % 2 == 0) printf("The number is even");
else printf("The number is odd");
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment