| about | help | code help+videos | done | prefs |
findAvgOfPos
Create a method findAvgOfPos that will take in three integers. Find the average of only the positive numbers. Return that average as a double. If there are no positive numbers, return 0. findAvgOfPos(4, 8, -3) → 6.0 findAvgOfPos(-5, 10, 15) → 12.5 findAvgOfPos(7, -2, -9) → 7.0 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Copyright Nick Parlante 2017 - privacy