CHALLENGE 3.4.3: Working with branches. ACTIVITY 412060 2661056x3zy? Jump to level 1 Given integer variable numHamsters,
Posted: Fri Jul 08, 2022 6:38 am
CHALLENGE 3.4.3: Working with branches. ACTIVITY 412060 2661056x3zy? Jump to level 1 Given integer variable numHamsters, output "Way too many hamsters", ending with a newline, if more than 10 hamsters exist. Ex: If the input is 11, then output is: Way too many hamsters 1 #include <iostream> 2 using namespace std; 3 4 int main() { 5 6 7 8 9 01234 11 } 13 14} int numHamsters; cin >> numHamsters; if (numHamsters > 10 ) { cout << "Way too many hamsters" << endl; Check return 0; Feedback? Next level