Answer the questions below concerning the following fragment of code. int n; cou
ID: 3770997 • Letter: A
Question
Answer the questions below concerning the following fragment of code. int n; cout > n; if (n 5) cout << "greater than 5" << endl; else cout << "not interesting" << endl; a. What will be the output of the fragment above if the interactivevuser enters the integer value 0? b. What will be the output of the fragment above if the interactive user enters the integer value 15? c. What will be the output of the fragment above if the interactive user enters the integer value 7? d. What values for n will cause the output of the fragment above to be "not interesting"?
Explanation / Answer
What will be the output of the fragment above if the interactivevuser enters the integer value 0?
not interesting
What will be the output of the fragment above if the interactive user enters the integer value 15
greater than 5
What will be the output of the fragment above if the interactive user enters the integer value 7?
greater than 5
What values for n will cause the output of the fragment above to be "not interesting"?
values less than and equal to 5
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.