1#include <stdio.h>
2
3int main() {
4 int x;
5 printf("\nInput an integer: ");
6 scanf("%d", &x);
7 if(x >=0 && x <= 20)
8 {
9 printf("Range [0, 20]\n");
10 }
11 else if(x >=21 && x <= 40)
12 {
13 printf("Range (25,50]\n");
14 }
15 else if(x >=41 && x <= 60)
16 {
17 printf("Range (50,75]\n");
18 }
19 else if(x >61 && x <= 80) {
20
21 printf("Range (61,80]\n");
22 }
23 else
24 {
25 printf("Outside the range\n");
26 }
27 return 0;
28}
29