Last active
August 29, 2015 14:19
-
-
Save rogerioagjr/0bccc6d2a7836c50a421 to your computer and use it in GitHub Desktop.
Está no limite
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 <cstdio> // scanf e printf | |
int main(){ | |
int n; // declaro a variavel n | |
scanf("%d", &n); // leio o valor na tela e salvo em n | |
if(5<=n && n<=10) printf("esta no intervalo\n"); // se n estiver entre 5 e 10, imprimo que ele está no intervalo | |
else printf("nao esta no intervalo\n"); // se não, imprimo que ele não está no intervalo | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment