This commit is contained in:
2025-07-10 12:10:31 +09:00
parent e2d2e70dfb
commit b103fac43e
48 changed files with 488 additions and 106 deletions

22
programs/p46/main.c Normal file
View File

@@ -0,0 +1,22 @@
#include <stdio.h>
int main(void) {
int n;
printf("Input positive integer: ");
scanf("%d", &n);
if (n <= 1) {
return 1;
}
int i = 1;
while (2*i <= n) {
printf("%d ", 2*i++);
}
printf("\n");
return 0;
}