- 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??
3 Answers
+ 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...
+ 1
đđ Thanks man..
+ 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...