04-C-Control-Structures
04-C-Control-Structures
STRUCTURES
CSIT121 – Fundamentals of Programming
• x <= 0
• 1 (TRUE)
• x < NUM
• 0 (FALSE)
• x >= y
• 0 (FALSE)
• 1 (TRUE)
• m == ‘M’
• m equal to ‘M’
• 1 (TRUE)
• num != num2
• 0 (FALSE)
• && (AND)
• || (OR)
• ! (NOT)
• n = 15
• n = -89
• n = 100
•n=0
• n = 15
• n = -89
• n = 100
•n=0
operand !operand
nonzero (true) 0 (false)
0 (false) 1 (true)
!flag || (y + z >= x - z)