Frage im Vorstellungsgespräch bei ShopRunner

Write an algorithm to print out the digits of an integer without using the substring method.

Antworten zu Vorstellungsgespräch

Anonym

13. Dez. 2014

divide the number by 10, the quotient becomes the new number and the remainder is the digit to be printed. Loop until the number becomes zero.

2

Anonym

22. Jan. 2015

Why the questions are so easy? :)

1