draft
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main(void) {
|
||||
int n;
|
||||
|
||||
printf("Input Integer: ");
|
||||
scanf("%d", &n);
|
||||
|
||||
switch (n % 2) {
|
||||
case 0:
|
||||
puts("The number is even.");
|
||||
break;
|
||||
case 1:
|
||||
puts("The number is odd.");
|
||||
break;
|
||||
default:
|
||||
puts("Unknown Error");
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user