Created
August 2, 2019 22:59
-
-
Save parzibyte/16760576459df7ad71cc562e930afd3e 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
#include<stdio.h>// printf | |
// prototipo | |
int esMayorDeEdad(int edad); | |
int main(){ | |
int mayorDeEdad = esMayorDeEdad(15); | |
if(mayorDeEdad){ | |
printf("Eres mayor de edad"); | |
}else{ | |
printf("NO eres mayor de edad"); | |
} | |
} | |
int esMayorDeEdad(int edad){ | |
return edad >= 18; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment