Created
October 9, 2019 22:35
-
-
Save parzibyte/9786e0fda782131f8715d832d371660a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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