What is up with these practice exercises? In practice exercise 6.2, my out put and the expected output are exactly the same.
David and Alex each have aquariums. There are 8 Rainbowfishes in Davidâs aquarium, and 11 Angelfishes in Alexâs aquarium. Help them exchange their fishes between them. Complete the code to swap the values of variables between aquariumDavid and aquariumAlex. You will need a third free aquarium to temporarily hold the fishes from one of the aquariums in order to swap them. #include <iostream> using namespace std; int main() { int aquariumDavid = 8; int aquariumAlex = 11; int aquarium3 = 0; // your code goes here aquarium3 = aquariumDavid ; aquariumDavid = aquariumAlex ; aquariumAlex = aquarium3 ; { cout << "David's aquarium: " << aquariumDavid << endl; } { cout << "Alex's aquarium: " << aquariumAlex; } return 0; }