+ 1
I need help with pro problem 6.2 in c++
No matter what I try I cant figure this out anyone who can give me the answer so I can see where I'm going wrong would be greatly appreciated
9 odpowiedzi
+ 4
Antonio Dickey ,
have a look at that small tutorial from sololearn, which demonstrates the swapping of variable content.
https://www.sololearn.com/learn/CSharp/2693/?ref=app
i am sure that you can solve this task by yourself!
happy coding and good success!
+ 1
you need to post the question here since not everyone can access it and your attempt here
+ 1
Where do I find the tutorial?
+ 1
and if you didn't get it from Lothar(since he posted in another language which you aren't learning here)
there's one dirty trick.
just swap the two variables where they print out since the test cases compare the code's output. like, just swap aqalex to aqDavid and vice versa in the cout
+ 1
I will try the answers provided but if someone has the sololearn pro and worked on c++ I would appreciate your answer to variables 6.2 pro question
0
Ok thanks
0
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.
0
Sorry I found it
0
I don't want to be a nuisance but all of the solutions presented to me seem like they have nothing to do with the previous lesson before the problem im stuck on? How am I supposed to figure it out when I wasn't shown in the lesson before the problem?