The answer is (c) 18.
The program graph for the given program includes the following nodes:
- Read x, y
- Result 1 = 1
- Result 2 = 1
- Counter = 1
- Repeat
- Result 1 = result 1 · x
- Counter + 1
- Until (counter > y)
- Counter = x
- Do while (counter > 0)
- Result 2 = result 2 · y
- Counter = counter – 1
- End Do
- If (result 1 > result 2)
- tThen print “x^y is greater than y^x”
- Else, print “y^x is greater than x^y”
- End if
- End
Therefore, there are a total of 18 nodes in the program graph.