हिंदी

Evaluation the following Postfix Expression: 15,3,2,+,/,7,+,2,*

Advertisements
Advertisements

प्रश्न

Evaluation the following Postfix Expression:

15,3,2,+,/,7,+,2,*

मूल्यांकन
Advertisements

उत्तर

Stack evaluation:

  • 3 + 2 = 5
  • 15 / 5 = 3
  • 3 + 7 = 10
  • 10 × 2 = 20

Final answer: 20

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. b) | पृष्ठ १२३
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×