Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created October 9, 2019 22:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/9786e0fda782131f8715d832d371660a to your computer and use it in GitHub Desktop.
Save parzibyte/9786e0fda782131f8715d832d371660a to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main(void) {
int inicio, fin;
printf("Inicio:\n");
scanf("%d", &inicio);
printf("Fin:\n");
scanf("%d", &fin);
for (int x = inicio; x <= fin; x++) {
if (x % 2 != 0) {
printf("%d,", x);
}
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment