Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Assuming that the user enters 60 as the input, what is the output after running the following code snippet?
- 1. int num = 0;
- 2. cout << "Enter number: ";
- 3. cin >> num;
- 4. if (num < 10)
- 5. {
- 6. cout << "Too small!";
- 7. }
- 8. else if (num < 50)
- 9. {
- 10. cout << "Intermediate!";
- 11. }
- 12. else if (num < 100)
- 13. {
- 14. cout << "High!";
- 15. }
- 16. else
- 17. {
- 18. cout << "Too high!";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement