Computer Science, asked by itzlaksh1836, 2 months ago

infix A+C*(D-E)^(B+C)-F to postfix​

Answers

Answered by Shubhampro112
0

Answer:

S:stack

while(more tokens)

 x<=next token

   if(x == operand)

     print x

   else

     while(precedence(x)<=precedence(top(s)))

       print(pop(s))

   push(s,x)

while(! empty (s))

 print(pop(s))

Explanation:

Similar questions