c++ code not showing output | SoloLearn: Learn to code for FREE!


c++ code not showing output

I don't know why but this code is not showing any output. I checked this code more than 5 times but couldn't figure out what is wrong with this code. Here is the code: https://code.sololearn.com/ca10A16a1A9a

1/21/2021 2:30:35 PM

Gajendra Sonare

4 Answers

New Answer


Simple typo on line 13: You increment 'n' instead of 'i', resulting in an infinite loop.


Yes run time error your program have becoz u incrementing value of n instead of i


Shadow Thankyou very much. I was looking for 15 mins and did not saw that. You saved my time😃


♨️♨️ yes. Just found out. Thankyou