Advertisement
Guest User

Untitled

a guest
Sep 25th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.31 KB | None | 0 0
  1. #define _CRT_SECURE_NO_WARNINGS
  2. #include <stdio.h>
  3.  
  4. int main(int argc, char *argv[]) {
  5.     int n;
  6.  
  7.     scanf("%d", &n);
  8.  
  9.     if (n <= 10 || (n >= 25 && n <= 80)) {
  10.         printf("%s", ((n % 2 == 0) ? "The number is even" : "The number is odd"));
  11.     }
  12.     else {
  13.         printf("The number is not in the range");
  14.     }
  15.  
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement