Add files via upload

add all file for task
This commit is contained in:
Artem Meinov
2019-03-15 13:56:01 +01:00
committed by GitHub
parent 7cbf191d5c
commit 8b358ed3fe
3 changed files with 32 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
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 Drink!");
}
else {
print("You Can't drink ):");
}
print_nl();
}
+1
View File
@@ -0,0 +1 @@
25
+1
View File
@@ -0,0 +1 @@
You Can Drink!