- 1

How can i complete this quest??

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. Code: #include <iostream> using namespace std; int main() { int aquariumDavid = 8; int aquariumAlex = 11; cout << "David's aquarium: " << aquariumAlex << endl; cout << "Alex's aquarium: " << aquariumDavid ; return 0; } ↑ is this true??

6th Jun 2021, 6:31 PM
Ahmet Berke Karabiyik
Ahmet Berke Karabiyik - avatar
3 Respuestas
+ 1
You need have values exchanged in aquariumDavid, aquariumAlex but you have same.. it not mean exchange print , it asking to exchange values in variables...
6th Jun 2021, 6:37 PM
Jayakrishna 🇮🇳
+ 1
😐🙃 Thanks man..
6th Jun 2021, 6:41 PM
Ahmet Berke Karabiyik
Ahmet Berke Karabiyik - avatar
+ 1
Oh. The total code you posted is given in question, you have to add code which makes exchange values,.. try it .. you can reply for any further doubt.. you're welcome...
6th Jun 2021, 6:53 PM
Jayakrishna 🇮🇳