Professional Documents
Culture Documents
Assignment R
Assignment R
ae-1
Oded
wrich lenath
enampleforstuetue function
and takes tabte
O a Cortigeney
&hbw
withVaialbles
Output Centable
21413l:613,2|I5)
Certable)
Pint ( e-c( Vec eating fat
the tale
ay
2 1 you corwet
Vectos
Collectio
. ovtigeney
isnelations inContigeney
2 2 = Cortiqemey table
is
ca Gt oata. lLAeo LsUs
2 3 table Used
245 is it single. wsot
! the ave imto
of stUetwe to
(vec) eate talebetuwerr Qmd toIalles
I 6 tahle
simplest en-basic taslesatabte Heate dhow Data
coumns
a
dimeienal ?
the
nis Give
certiqmey data a
Vaia fumes
data s kBun
Javguage
com Grtigeny table()
table-tt
am diatrieramples
ty les Jhuy
abjot pesvectacs . amd
abgument butibrß
d
tasle data of
as
Comtigerey aMe vetos?
a Aonples to
yevem a - Wsd cuente
erm dn
R to
A-2
exampe
N5(enpassien)E R Crue
Print Print y jn
Srtanenpusor eranple
2<-1 00 m
else Print the Coaton
OY
aste (paste - byaces
else Condi else (paste mot
Statemerta-y
(u,
(x. Statememta. y in
/is tatements-y ton {3 JA
enpsssier :-
if
Condit'en (a"is
Cortimls true his
"is guuatoc
as ae
orditon qeater the contrsl
Coitor i-
eneeuted
thanthar1o")
st puovided.
ereCution
lo
") fails is
s therm l60Output
stuetwe
) is
but
sinilae lo) genter
ot
in
sdesthanQut6put ther
whenthe paunthesis
the
to checks
Statemerts if than statemerts
teat the
lÛ'" is
3
me-mtru
(2:1512)
for ( matix
the output Print
(i)
(iimn){ for exarmple Corolit'on
for erample Moteovet Nested Surta is fo
erarmplCnteax whe
(c leop
loop [Hic])
Print(mimim i-
While while
lnow
(m)))deq i Nestep
oops for
egln mested statemends st
Prt'nt(x) iteroted
whie Statememts.4 (value
Heacho is
(x<=
pession)£ cal a
loop (m loopsNested
mens "
6)
))i Output'
(4) ! in
wntil lops vecta)eecuted
£ es E "d"
aue
anothea C:7
condition C1]11 C1] I1] QutputCa] sirmila
aue £
atatenent 12[1 2 Used "e" tepeateolly
Kkind (1
3 C1
[a] to Cs)"""
]5 t4] ]4 inide
lsops
loop.
(5(1) C1] mariulate
is of
[1 6 impleto C11"g"
- losp
Ratesfed ]C17 [1] urtil
15
4 9 8
C1] eit
to
4 6
erample&ytanContrsl Sytag. be Repeat
thhuewhich
eranple
fure etwn
func()/ eult ueoL s
(epession
<- utwn ) statenenta
Hupeat t can oep
utwen
Zexo) (^ to in mo
('Negative
sutusn )ukuson
sitive")("Pofurction the
atotement epeat
of Ptnt(y
caling brea }k cany eit andb
eceuted type iteratedbreak
()¬ breaky3 condition
ution :-Jt
of
statement
tnction loop mrs
is to
beaK
uid erit mumbe
Negatve
l1)" "Positive"
l1[13 L1]output i
and to apeat
Zo" statement
omthe
etwn of
etuwrs times is
th loop. (oop a
can but
4 6
Whuch
Repeat
eample Cotrel
Sytax thue
be
fure
Kyntan etwen erample
Lsult ueo is
fuc 1) <furction
utunlenpuession ) statements
Hupeat t can loep
sutwen
Zeo') ( ("Positive")
utuen. to in mo
"Negative")
sutusn the
atatement Hepeat
of Portintl) cany eit bL and
catli'ng brea}y
k
eecteol type
iterated.break
(n) break y3 condition
¬ uncten :-
ofstatement
loop mary
t
is
nction to
beak
Negatve
[1)* 11 Positive"
l1] LiQutput
] used eit muntbee
!
ard to tom epeat
Zco" etwn statement
of
setuwrs t'mes
the sa
the
aop loop
anbut
lo
8
the Next
exarnple ehcecuting
Lfli2!6)¬ = ment
Puint i) toternpnt
met
iteva the
tthwe
tion
the
Cyele cuUent ment
statiments
dtatemerti's
[4]8 (17 6 (1) 2 without
[1] 10 ouiput
teation
terinnting and.
usedto
Cortinue,without
Akip
the