Making choices if statements in functions.qmd (solution)

Exercise
Output solution

Solution to If Statements in Functions exercise 1

[1] 20

2

[1] 30

3

[1] 10

4

[1] 24.5

5

[1] NA