We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1044192 commit c0f7da2Copy full SHA for c0f7da2
problem25/problem25.js
@@ -0,0 +1,12 @@
1
+/* Write a function called make_avg() which will take an three integers and return the average of those values.
2
+ */
3
+
4
5
+function make_avg(num1, num2, num3){
6
+ var totalNumbers = num1 + num2 + num3 ;
7
+ var avgNumber = totalNumbers / 3 ;
8
+ return avgNumber;
9
+}
10
11
+var average = make_avg(60, 60, 59);
12
+console.log(parseFloat(average.toFixed(2)));
0 commit comments