From bbdeec249517fb1ab4c59342b800286f55637ea6 Mon Sep 17 00:00:00 2001 From: Denis Costa Date: Sat, 16 Nov 2024 18:28:34 -0300 Subject: [PATCH] Solve Odd Numbers in c --- solutions/beecrowd/1067/1067.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 solutions/beecrowd/1067/1067.c diff --git a/solutions/beecrowd/1067/1067.c b/solutions/beecrowd/1067/1067.c new file mode 100644 index 00000000..03e1f550 --- /dev/null +++ b/solutions/beecrowd/1067/1067.c @@ -0,0 +1,14 @@ +#include +#include + +int main() { + int16_t n, i; + + while (scanf("%d", &n) != EOF) { + for (i = 1; i <= n; i += 2) { + printf("%d\n", i); + } + } + + return 0; +}