Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created August 2, 2019 22:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/16760576459df7ad71cc562e930afd3e to your computer and use it in GitHub Desktop.
Save parzibyte/16760576459df7ad71cc562e930afd3e to your computer and use it in GitHub Desktop.
#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