Objective:
Learn the operators, expressions and math
functions.
Scope:
The student should know the following:
1.
Problem
Solving
2.
Data
Types
3.
Arithmetic
Expressions
4.
Math
Functions
5.
Writing
Complete Programs
Discussion:
The following problem will be discussed:
![]() |
Exercises:
Evaluation:
Your grade will depend on your active
participation and seriousness during the lab.
1.
Write a
program that reads a 3-digit integer n then it prints each digit in a line. If
n is 325, it prints 5 in the first line, 2 in the second line, and 3 in the
third line. (Hint: use % operator for remainder).
2.
Write a
program that reads an integer n then it finds an approximation for n! Using the following formula:
Notes: