When the input number is 3, the code will not match any specific case and will default to the 'otherwise' output. The result will be 'other value.' Therefore, the answer for input 3 is 'other value.'
What is the output for the following code when you enter number 3 .pdf
1. What is the output for the following code: when you enter number 3? What will be the output
of this code:
Solution
(14)
we are given
n= input number
when we enter n=3
we can see that no case has value=3
so, it will go to otherwise
and we can see that output below otherwise is
"other value"
so, that's the answer