1/18/00
COM1100 Winter2000 Yuhong Yin
Northeastern University
18
if
statement
-- 2
n
Parentheses around condition are required
.
n
n
Condition is often the result of
relational
operators
n
if ( x > y )
n
return x;
n
else
n
return y;
n