+ 3

Can someone help me?

I make program to print all armstrong number by inputed range. but 153 doesnt appear, whereas other number like 370 appear. This is my code, thank you for your help !! https://code.sololearn.com/cTmb7UXyTFQl/?ref=app

22nd Feb 2018, 3:13 PM
Nino Fachrurozy
Nino Fachrurozy - avatar
2 Answers
+ 3
Change pow(/* whatever */) to floor(pow(/* whatever */)).
22nd Feb 2018, 3:26 PM
deFault
+ 2
thanks a lot !! it works
22nd Feb 2018, 3:27 PM
Nino Fachrurozy
Nino Fachrurozy - avatar