30 lines
318 B
MonkeyC
30 lines
318 B
MonkeyC
bool ageforalco(int n)
|
|
{
|
|
if (n < 21) {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
int main()
|
|
{
|
|
print("Enter you age: ");
|
|
|
|
int age;
|
|
age = read_int();
|
|
print_nl();
|
|
|
|
bool result;
|
|
result = ageforalco(age);
|
|
|
|
if (!result) {
|
|
print("You Can't drink ):");
|
|
}
|
|
else {
|
|
print("You Can Drink!");
|
|
}
|
|
print_nl();
|
|
return 0;
|
|
}
|