Dsa Lab 5

Download as pdf or txt
Download as pdf or txt
You are on page 1of 8

a nclsud <atdesh

include ctypt.h
T inelvlemeRh

Veid pinl )
cah SulialSo

yudiiteicL

CoL p pep) t pepl


tak
Lep
pa /)-enpl-
chandras
DI Pg:

a pudLpp)pp
la
CascZ enns pap
T nYP

Co

huak: 1
top-
Cas
Pa

LA \
ghanctas
2

k 2 42
aa
Py -4o,

p 3/ h 3 ho)
2 p 3)

2 Sut (P) 1

_p 3+2)
P u (s)

Pu(S*S
Pah(25) 25
S

25

ukH2-ho)
22
peyh22

aL h3ho

en ppi

Puh
le)

/
O25

025
chandras
Dt: Pg

ith(G)

posk Lapl)1pop)
UAN +23)
pLh 6

ULL
Lelud Lia,h

U,

a lpe Hansi \
A R)

h av
Applications Places System EN OWed Dec 16, 10:35
a
X
Meet -bhc-ftx Online CCompil
X nlinegdb.com/online.ccompiler

HApps Gmail YouTube a Maps a News Translate

OnlineGDB a Rum ODbsip CSure Hsae Bthy Language C

void main()

23 char suffix[58
24 int i-0, temp;
My Project
suffix expression: \n") ;
iassrom ca
("nEnter.a valid
05uxJt=\0i1+*)
Learm Programming

Programming Questions 29 irsdig3: (suffix[1]))


sgn Up 30 push(suffix[i 8)
Swtch(suffix[i])
Login
33 case '+' :push{pop()pop();
break:
35
case ''temp pop)
36 push(pop() temp)
38 case :push(pop() "pop 0)
Dredk
40
case 7:temp pop)
pusnpopt)/temp)i
43 case ':temp pop )
44 push
Dreak
(pop ()temp)
temp
47 push(oo (pop(0.temp)):
(pop0,temp))
8 break:

ti(The value of the given expression is sdin",pop ());

input

suttx expresslon
Enter a vaad
23 5 323A/
he value of the giVen expresS 1on 1s 265

*.Program Tinished with exit code D

AboFAQBlog
- Teme of Use Certact U GDB T u r o r i P r e s s ENTER to exit conso l e

Waiting for www.onlinegdb.com.


Menu Online C Compiler onl..Parrot Terminal [suffix-expression.c(-/..
Applications Places System EN O Wed Dec 16, 10:36
Meet- bhc-ftx
Online CComP *
Online CCompi x

X onlinegdb.com/onlinecompiler

Apps Gmail YouTube Maps NewS Translate


OnlineGDB Bea RinDebusiop GshaeHSave0Beausty LanguageC
1- /*****n**nsasnn*as**sann***n**n*an*asnsasenne***nea***emnnssan****asmmras****
code. caipuie, run. Detug. share Online C Compiler
Code, Compile, Run and Debug C program online.
Write your code in this editor and press "Run button to compi le and execute 1t.
My Projects
eiassroom

Leam Programming
the number oT s***
Programming Questions The sequente of moves invoLved n the Tower ot Hanol are *

Sgn Up

Login Move dlsK TrO peg A 0 Pey

f Move disk 3 from peg

Move disk 1 from peg B to peg A


Ove s Trom peg
A

B
to

to
peg

peg
c

Hove alsX T Trom peg A t0 peg e

Program finished with exat code 0


Press ENTER to exit console.

Axu FARBlng Tems ol usn Caact * GDB Tutora

Waiting for www.onlinegdb.com.


# Menu Online C Compiler-onl.

You might also like