38 Answers
New AnswerBecause the instructions on the Shampoo Botel said Lather, Rinse, Repeat 😜😛😝 ///////////////////////////// Join Whatsapp Group of Programmers 💻 http://www.sololearn.com/app/sololearn/playground/WoRKfVStF7Mn/ 💬 Submit
11/9/2016 7:19:56 AM
AlamSirji38 Answers
New Answera programmer was sent to buy milk by his mom, she told him if they have eggs bring 6 and he brought 6 bottles of milk
To a programmer that instruction is like a while loop, where you have to keep (Repeat) Rinsing while there's still Lather. NB: This can not be an infinite loop since the lather will be completely cleaned out at some point
UPDATE //rinse is a function void rinseUp(){ cout<<"rinsing\n"; } int main(){ //humanSize/height to be 185 int humanSize = 185; int latter; //for loop to show that latter is all over //the human for(latter = humanSize; latter >= 0; latter --){ rinseUp(); if(latter == 0){ cout<<"Done\n"; break; } } } try running it this should do the trick 😂😂😂😂😂😂😂
** ERROR REPORT ** A fatal error has occurred while trying to execute this command: Lather, rinse, repeat. reason: found loop in instructions can't execute this command!
Join Whatsapp Group of Programmers 💻 http://www.sololearn.com/app/sololearn/playground/WoRKfVStF7Mn/ 💬 Submit
Learn Playing. Play Learning
SoloLearn Inc.
4 Embarcadero Center, Suite 1455Send us a message