Computer Science, asked by rushishirke, 11 months ago

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 Mahu888
1

Answer:

Here is answer,

Output

10

Answered by glckin
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