Sollicitatievraag bij Microsoft

Reverse an integer

Antwoord op sollicitatievraag

Anoniem

31 mrt 2019

1- use modulo 10 to get the least significant digit 2- multiply result with 10 and add the least significant digit 3- keep doing it until done with all numbers (coefficient is zero )