Skip to content

Commit

Permalink
Solve Odd Numbers in c
Browse files Browse the repository at this point in the history
  • Loading branch information
deniscostadsc committed Nov 16, 2024
1 parent 0a678ad commit bbdeec2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions solutions/beecrowd/1067/1067.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#include <stdint.h>
#include <stdio.h>

int main() {
int16_t n, i;

while (scanf("%d", &n) != EOF) {
for (i = 1; i <= n; i += 2) {
printf("%d\n", i);
}
}

return 0;
}

0 comments on commit bbdeec2

Please sign in to comment.