Week_3_Control_Structures_Part_1
Week_3_Control_Structures_Part_1
Boolean Expressions
Building, Evaluating & Precedence Rules
Branching Mechanisms
if-else
switch
Nesting if-else
Loops
While, do-while, for
Nesting loops
Copyright © 2002 Pearson Education, Inc. Slide 3
Boolean Expressions
Logical Operators
Logical AND (&&)
Logical OR (||)
Display 2.1,
page 46
system("pause");
} © 2002 Pearson Education, Inc.
Copyright Slide 21
If statement Examples (cont)
Write a program that will input one character then
print if its small letter, capital letter or special
character.