Last active
July 29, 2019 08:51
-
-
Save sachinsaxena25/465845fd754a9071d4b929591a8ab96b 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(void){ | |
int inputNumber = 0; | |
printf("please enter number:"); | |
scanf("%d", &inputNumber); | |
(inputNumber % 2 == 0) ? printf("number is even", inputNumber) : printf("number is odd", inputNumber); | |
return 0; | |
} |
dbc2201
commented
Jul 25, 2019
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment