If you want to end the loop if n2 is also >= 0 you will do:
while (n1>=0 && n2>=0) {
...
}
And you HAVE to initialize n1 (and n2 if you use the above code). If you don't it will...
Type: Posts; User: C_ntua
If you want to end the loop if n2 is also >= 0 you will do:
while (n1>=0 && n2>=0) {
...
}
And you HAVE to initialize n1 (and n2 if you use the above code). If you don't it will...