Advertisement
Guest User

Untitled

a guest
May 25th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #include<stdio.h>
  2. int main(){
  3. int x;
  4. printf("Enter a number: ");
  5. scanf("%d", &x);
  6. if(x%2!=0){
  7. printf("\nThe number is odd");
  8. }
  9. else{
  10. printf("\nThe number is even");
  11. }
  12. return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement