Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created August 1, 2019 15:17
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/333bb6d342c0af1409c6139d3056cf03 to your computer and use it in GitHub Desktop.
Save parzibyte/333bb6d342c0af1409c6139d3056cf03 to your computer and use it in GitHub Desktop.
/*
Mayor y menor de edad en C
@author parzibyte.me
*/
#include <stdio.h>
int main(){
int edad;
printf("Escribe tu edad: \n");
scanf("%d", &edad);
if (edad >= 18){
printf("Mayor de edad");
}else{
printf("Menor de edad");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment