#include using namespace std; // p: 60000 void loopy(int p){ while(true){ cout << "Goose\n"; // Remember the newlines p--; if(p % 2) // 60000 % 2 = 0, false continue; if(p > 10) // 60000 > 10, true break; if(p == 0) // true! return; cout << "Bear\n"; } cout << "Salmon\n"; } int main(){ cout << "Duck\n"; loopy(3); cout << "Dugong\n"; loopy(60001); cout << "Deer\n"; return 0; } /* * Duck * Goose * Bear * Goose * Goose * Dugong * Goose * Salmon * Deer */