Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #define _STRING_H
- #include <stddef.h>
- #include<stdlib.h>
- #include <locale.h>
- int main() {
- setlocale(LC_ALL, "Portuguese");
- int idade;
- printf("Digite a idade do jogador:");
- scanf("%d", &idade);
- if (5 <= idade && idade <= 11) {
- printf("O jogador é da categoria INFANTIL \n\n");
- }
- else if (12 <= idade && idade <= 17) {
- printf("O jogador é da categoria JUVENIL \n\n");
- }
- else if ( idade >= 18){
- printf("O jogador é da categoria ADULTO \n\n");
- }
- else {
- printf("Não há categorias pra essa idade \n\n");
- }
- system("PAUSE");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment