Created
February 24, 2017 20:28
-
-
Save FelipeGrijo/e07569efdafaefca13c5205c2e2d746e to your computer and use it in GitHub Desktop.
12) Entrar com a idade de uma pessoa e informar: - se é maior de idade - se é menor de idade - se é maior de 65 anos
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
//https://gist.github.com/FelipeGrijo | |
#include <stdio.h> | |
int main(){ | |
int Idade=0; | |
printf("Digite sua idade:"); | |
scanf("%d",&Idade); | |
if(Idade>=18 && Idade <=65){ | |
printf("Maior de idade\n"); | |
} | |
else if(Idade>65){ | |
printf("Mais que 65 anos\n"); | |
} | |
else | |
{ | |
printf("Menor de idade\n"); | |
} | |
system("pause"); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment