about | help | code help+videos | done | prefs |
Write a method that accepts two integer parameters, numerator and denominator, then returns a string that represents the result of performing that division problem. The results will be in the form "a+(b/c)" where a, b, and c are integers unless b is zero, then the results will be in the form "a". Note that both input parameters will be positive. coolDivision(8748, 42) → "208+(12/42)" coolDivision(257, 256) → "1+(1/256)" coolDivision(1, 1) → "1" ...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: 422
Copyright Nick Parlante 2017 - privacy