Created
March 4, 2023 02:48
-
-
Save raiyansarker/669e7aa1d5e739ca84e292298753100d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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