0

Whats the output of this code.

compiler unable to run it https://code.sololearn.com/co9R40wEe2gH/?ref=app

30th Mar 2018, 7:30 PM
Pewdiepie
Pewdiepie - avatar
1 Respuesta
+ 9
#include <iostream> using namespace std; int main() { long number=5572331,result=0; do { result*=10; int digit=number%10; result +=digit; number/=10; } while(number); cout <<"output="<<result<<endl; }
30th Mar 2018, 7:35 PM
Hatsy Rei
Hatsy Rei - avatar