Professional Documents
Culture Documents
Programming Constructs: Operators Decision Control Statements Loops
Programming Constructs: Operators Decision Control Statements Loops
Operators
Decision control statements
Loops
Logical operators
a !a
NOT TRUE FALSE
FALSE TRUE
AND OR
a b a&b a b a|b
TRUE TRUE TRUE TRUE TRUE TRUE
TRUE FALSE FALSE TRUE FALSE TRUE
FALSE TRUE FALSE FALSE TRUE TRUE
FALSE FALSE FALSE FALSE FALSE FALSE
R programming - Pratik Gadia
Decision control
Types of loops:
o Repeat – Looped at least once
o While – Condition is validated to begin with loop
o For – Iterate over a sequence