Skip to content

Commit f404974

Browse files
committed
solve exercise 1
1 parent 524d761 commit f404974

File tree

1 file changed

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

1 file changed

+6
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Create an expression that solves the following problem:
2+
# Sarah has bought ten slices of bread for ten cents each,
3+
# three bottles of milk for two dollars each, and a cake for fifteen dollars.
4+
# How many dollars has Sarah spent?
5+
6+
10 * 0.10 + 3 * 2 + 15 # 22.0

0 commit comments

Comments
 (0)