diff --git a/A13/even-odd.c b/A13/even-odd.c new file mode 100644 index 0000000..c3641a4 --- /dev/null +++ b/A13/even-odd.c @@ -0,0 +1,29 @@ +#include +#include + +/* Finding if a given number is EVEN or ODD*/ + +int main() +{ + + int num; + + printf("\n"); + printf("This programm checks if a number is even or odd.\n"); + printf("Please enter a number: "); + + scanf("%d", &num); + + if (num % 2 == 0) + { + printf("The number is EVEN\n"); + } + else + { + printf("The number is ODD\n"); + } + + printf("\n"); + + return 0; +} \ No newline at end of file