I started coding in C++ (VS 2015).
Wrote a little program which using a while statement.
#include <iostream>
using namespace std;
int main() {
int x = 1;
int y = 2;
int z = 0;
while (x != y || z != y) {
cout << "x: " << x << "\n" << "z: " << z << "\n";
x++;
z++;
}
cin.get();
}
If i get this correctly it should work in that way (but since its going to an infinite loop i guess my logic is not as correct as i think).
So in my mind the while statement should work in that way.
While X not equal to y OR z not equal to y.
add +1 to X and +1 to Z.
Do this until the statment became true (or atleast the left side of the expression).