I keep getting run time error and I don’t know how to solve it, please let me know
I keep getting runtime error for this problem. The code screenshot attached below
Hey @shibangi
add this after reading n
cin.get();
this is because when you provide n then there is ‘\n’ also present in the input buffer
so before taking other input you have to remove this ‘\n’ by using cin.get()
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.
