why code is not printing any number?
hello @moksh ur while loop condition is not correct.
make it while(sum>=0) and then try