next up previous
Next: Blocks of Code Up: If Statement Previous: Example

Activity 1

1.
Objectives
(a)
Learn about Math Expressions
(b)
Learn about if statements.
(c)
Learn about logical expressions.
(d)
Strengthen previous knowledge.
Short programs
(a)
write a program that can calculate the sine of angle
(b)
write a program that can compare the sine and cosine of the angle then print out the bigger value.
(c)
write a program that find the remainder of division of two integers then print out its square root.


Yousef Haik
2/23/1998