CHALLENGE 3.4.3: Working with branches. ACTIVITY 412060 2661056x3zy? Jump to level 1 Given integer variable numHamsters,

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

CHALLENGE 3.4.3: Working with branches. ACTIVITY 412060 2661056x3zy? Jump to level 1 Given integer variable numHamsters,

Post by answerhappygod »

Challenge 3 4 3 Working With Branches Activity 412060 2661056x3zy Jump To Level 1 Given Integer Variable Numhamsters 1
Challenge 3 4 3 Working With Branches Activity 412060 2661056x3zy Jump To Level 1 Given Integer Variable Numhamsters 1 (27.65 KiB) Viewed 35 times
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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply