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

What is the output for the following code when you enter number 3 .pdf

  • 1.
    What is theoutput 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