What will be the output of the following Pseudocode?
1. int a=10, b=4, i
2. if (a>b)
3. if (a+b>14)
4. print a
5. else
6. for(i=1 to 3)
7. a = a+i
8. end for loop
9. print a
10. etse
11. print b
INCIAL
TH
TIL
Answers
Answered by
1
Answer:
Here is answer,
Output
10
Answered by
0
Answer: 13
Explanation:
What will be the output of the following Pseudocode?
1. int a=10, b=4, i (initiate)
2. if (a>b) (10 is more then 4 true)
3. if (a+b>14) (10+4 is more then 14 false go to 5.)
4. print a
5. else
6. for(i=1 to 3) (perform loop 3 times)
7. a = a+i (increment 3 times =13
8. end for loop
9. print a
10. etse
11. print b
INCIAL
TH
TIL
Similar questions
Math,
6 months ago
Computer Science,
6 months ago
Physics,
1 year ago
Math,
1 year ago
Math,
1 year ago