about | help | code help+videos | done | prefs |
yearsFromMyAge
Create a method called int yearsFromMyAge(int theirAge) that when given the user's age it will return how many years they are from my age. Use Math.abs I am 45 now yearsFromMyAge(2) → 43 yearsFromMyAge(80) → 35 yearsFromMyAge(45) → 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