0

I can't get this function to terminate the while loop

https://code.sololearn.com/cgesqg07bAZd/?ref=app It just executes again as if I input a huge number into it.

10th May 2017, 9:59 PM
Jacob
6 Respuestas
+ 3
lol double terminate should have been char terminate. my bad. I just woke up
10th May 2017, 10:19 PM
jay
jay - avatar
+ 4
Where to start. 😊 you need to add the following if you want to use cin and cout #include <iostream> using namespace std; your main function helloworld must be called main and return an int: int main() { }
10th May 2017, 10:10 PM
jay
jay - avatar
+ 4
https://code.sololearn.com/c7F5TkQ0oR99/?ref=app when run here. you must enter all the inputs at run time on seperate lines so for 3 print runs you would enter 3 y
10th May 2017, 10:13 PM
jay
jay - avatar
+ 2
Why doesn't it continue the loop when N is input?
10th May 2017, 10:16 PM
Jacob
+ 1
https://code.sololearn.com/cmxMSyJm2c2r/?ref=app I only provided the function I was talking about. Here is the full code.
10th May 2017, 10:12 PM
Jacob
+ 1
Thanks Jay, you're the man
10th May 2017, 10:21 PM
Jacob