हिंदी

Evaluation the following Postfix Expression: 20,8,4,/,2,3,+,*,-

Advertisements
Advertisements

प्रश्न

Evaluation the following Postfix Expression:

20,8,4,/,2,3,+,*,-

मूल्यांकन
Advertisements

उत्तर

Stack evaluation:

  • 8 / 4 = 2
  • 2 + 3 = 5
  • 2 × 5 = 10
  • 20 − 10 = 10

Final answer: 10

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 6: Stacks & Queues in list - EXERCISE [पृष्ठ १२३]

APPEARS IN

सीबीएसई Computer Science with Python [English] Class 12
अध्याय 6 Stacks & Queues in list
EXERCISE | Q 11. a) | पृष्ठ १२३
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×