Skip to content

Instantly share code, notes, and snippets.

@FelipeGrijo
Created February 24, 2017 20:28
Show Gist options
  • Save FelipeGrijo/e07569efdafaefca13c5205c2e2d746e to your computer and use it in GitHub Desktop.
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
//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