We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 524d761 commit f404974Copy full SHA for f404974
elixir/learn-fp-with-elixir/02.variables-and-functions/exercises/01.ex
@@ -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