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.
6 Respostas
+ 3
lol double terminate should have been char terminate. my bad. I just woke up
+ 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() { }
+ 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
+ 2
Why doesn't it continue the loop when N is input?
+ 1
https://code.sololearn.com/cmxMSyJm2c2r/?ref=app
I only provided the function I was talking about. Here is the full code.
+ 1
Thanks Jay, you're the man