1
1
Fork 0
AtomicKotlinCourse/Programming Basics/Summary 1/Exercise 3/task.md

13 lines
539 B
Markdown

## Summary 1 (#3)
Write a function `first()` that has an *expression body* starting with `if`.
The function takes three `Boolean` parameters and "ands" them together to
produce the result. Write `second()` to do the same but "or" all three
parameters. In `main()`, display the result of combining `first()` and
`second()` using both "and" and "or":
| `first()` Arguments | `second()` Arguments |
|---------------------|----------------------|
| true, true, true | false, false, false |
| true, false, true | false, true, false |