looping

hi guys can you please help me with this exercise, its my first year studying C++ and im struggling

I am trying to write the code but i dont understand this Question "Suppose we wanted to validate the data captured for a customer that has two bank accounts in a while loop. The variable names for the bank account numbers are bankAccount1 and bankAccount2. The variable names for the balances of each account are balance1 and balance2. A customer cannot have negative balances for each of the accounts. Additionally bankAccount1 and bankAccount2 cannot hold the same bank account number.Write down a correct condition for the while loop that validates the bank account numbers and the balances of each account.Please Help!!!!!
Last edited on
1
2
for ( a; b; c ) 
    d;
Is the same as
1
2
3
4
5
6
7
8
{
    a;
    while ( b )
    {
          d;
          c;
    }
}
int i = 1;
while(i <= 10)
{
cout<<"i is now :" <<i<<endl;
i = i+3;
}
1
2
3
4
5
6
7
8
9
10
11
12
#include <iostream>

int main () {
	while (1) {
		static int i = 1;
		std::cout << i << std::endl;
		if (i > 10)
			break;
		i += 3;
	}
	return 0;
}
closed account (z05DSL3A)
Bazzys reply: terse but ++
mp121209s reply: -= a_bucket_load
Thank you for your Help guys.
Topic archived. No new replies allowed.