Professional Documents
Culture Documents
02 IEC T1S1 OOPs Session 02
02 IEC T1S1 OOPs Session 02
Objectives
…
case ConstantExpression_n:
statements;
break;
default:
statements;
break;
}
Problem Statement:
Write a program that emulates a calculator. The calculator
should be able to perform the following mathematical
operations:
Addition
Subtraction
Multiplication
Division
Execute body of
Loop
Evaluate
Condition
False
True
Evaluate False
Condition Execute body of
Loop
True
Initialization
False
Evaluate Exit the for
Condition Loop
True
Body of the
for Loop
Increment/
Decrement
Problem Statement:
Write a program that generates the Fibonacci series up to 200.