This repository has been archived on 2023-10-26. You can view files and clone it, but cannot push or open issues or pull requests.
VSMechatronics/Exercises/C8/ex2.c

15 lines
189 B
C

#include <stdio.h>
int main() {
int input;
printf("Enter an integer: ");
scanf("%d", &input);
if (input >= 0 && input <= 10) {
printf("The number is in range\n");
}
return 0;
}