-
-
Save parzibyte/bf749b8ab9affa6bc271dd6019d35a08 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
int solicitarMedida() { | |
int medida; | |
while (1) { | |
printf("Ingrese la medida del bosque. Puede ser de 5, 7 o 9: "); | |
scanf("%d", &medida); | |
consumir_nueva_linea(); | |
if (medida == 5 || medida == 7 || medida == 9) { | |
return medida; | |
} else { | |
printf("La medida no es correcta\n"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment