Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
0
getline works but you have incorrect calculations to stop loop.. your inner while loop cant run anytime. And if l>0 not true true , your loop is infinite. . So think about logic in while loop.. c++ should be executed in every iteration..
11th Mar 2021, 5:04 PM
Jayakrishna 🇮🇳