What will be the output of the following pseudocode?
Integer a,b
Set a=10,b=7
For (int i=1;i<=5;i++)
A=a+i+b
While
(a-6)
A=a+b
B=b-1
A=a-1
End while
Print a
End for
Answers
Answered by
1
Answer:
screen
wellcome
Answered by
1
Answer:
since the value of a is not being changed anywhere and assigned back, the value of a retains and it prints
10 10 10 10 10 .
Iis inside the for loop and gets printed 5 times
Similar questions