+ 1
How to take input in compiler in solo learn?
I'm coding a program in c++, which needs to take an input from the user, after I run it I'm unable to take the input from the user... Why??? Plz help... Thanks
6 Respuestas
+ 4
You can't do the modulus of 0 in your code, you should do the modulus of 1 instead (you can't divide by 0)
That will fix the problem
+ 4
You're welcome ;)
+ 3
cin >> variable or the getline function
+ 1
Actually i thought it'd select the percentage from 0-100.. So I put it like that.. 🎉 Got it.. Thank you soo much😊😊
+ 1
Try out my program 😊
0
I used it... Just have a look at my code
https://code.sololearn.com/cBQNkMUsKrZn/?ref=app