about | help | code help+videos | done | prefs |
Write a method that returns the value of 'num' but with the ones place of 'num' replaced with a zero. For example, if 'num' is 7482, return 7480. If 'num' is -23, return -20. If 'num' only has one digit, you will return 0. You are NOT allowed to use any strings or arrays to solve this problem! Look at the test data for examples. test2023_10_05_APP1SLHL_zeroOnesPlace(9) → 0 test2023_10_05_APP1SLHL_zeroOnesPlace(-3) → 0 test2023_10_05_APP1SLHL_zeroOnesPlace(574) → 570 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 210
Copyright Nick Parlante 2017 - privacy