+ 5
It's to do with the capacity of a long variable to hold values. On code playground, a long seems to be 32 bits and results greater than about 4 billion can't be represented. Also use an unsigned long to prevent getting negative results. https://code.sololearn.com/cemnC0nQRt79/?ref=app
8th Feb 2019, 2:49 AM
Sonic
Sonic - avatar