I really can't understand why the do while loop doesn't work for me.
I have this simple program
The actual loop does work but it doesn't calculate the sum, it alway comes up with a sum of 0 and I can't understand why. I have been trying for hours, but I bet it is a silly error.
//Calculation 1.3: this includes a do...while loop.
cout <<"Welcome to Calculation 1.3. \nThis program contains a do...while loop.\n";
int a (0);
int b (0);
cout <<"Insert your first number: \n";
cin >> a;
cout <<"Insert your second number: \n";
cin >> b;
cout << "The sum of your number is: "<< sum;
while (a>=5 && b<=10);
Any idea at all?