progress
This commit is contained in:
16
programs/a1/main.c
Normal file
16
programs/a1/main.c
Normal file
@@ -0,0 +1,16 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main(void) {
|
||||
int n;
|
||||
|
||||
printf("Input integer: ");
|
||||
scanf("%d", &n);
|
||||
|
||||
if (n <= 10 && n > 0) {
|
||||
printf("%d is one digit natural number.\n", n);
|
||||
} else {
|
||||
printf("%d is not one digit natural number.\n", n);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user