Skip to content

Commit a421c02

Browse files
committed
Solve exercise 02
1 parent f404974 commit a421c02

File tree

1 file changed

+10
-0
lines changed
  • elixir/learn-fp-with-elixir/02.variables-and-functions/exercises

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Bob has traveled 200 km in four hours.
2+
# Using variables, print a message showing his travel distance, time, and average velocity.
3+
4+
distance = 200
5+
time = 4
6+
average_velocity = 200 / 4
7+
8+
IO.inspect distance
9+
IO.inspect time
10+
IO.inspect average_velocity

0 commit comments

Comments
 (0)