Question: What will be the output of the algorithm given below? Algorithm 1 . Start 2 . Initialize a , b = 5 c = 2
What will be the output of the algorithm given below?
Algorithm
Start
Initialize a b c ij
Compute a b c
Compute b a c
Set i
Repeat step until i step by
Print i
End loop
Check if a b i then
Set j
Repeat step until j step by
Print j i
End for
End if
Check if a c j
Print "Nice"
Else print "Morning"
Else if
Stop
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
