Created
August 1, 2019 15:17
-
-
Save parzibyte/333bb6d342c0af1409c6139d3056cf03 to your computer and use it in GitHub Desktop.
Mayor de edad en C - https://parzibyte.me/blog/2018/11/19/mayor-menor-de-edad-varios-lenguajes-de-programacion/
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
/* | |
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