Professional Documents
Culture Documents
Lab 02
Lab 02
University of Jaffna
Task 02
In mathematics, the Fibonacci numbers are the numbers in the following integer
sequence, called the Fibonacci sequence:
1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144,…………...
By definition, the first two numbers in the Fibonacci sequence are 1 and 1, and each
subsequent number is the sum of the previous two.
In mathematical terms, the sequence fn of Fibonacci numbers is defined by
the recurrence relation
Task 03
Write a C++ program to get the marks of 10 students in EC1010 subject from user
and store it in an array;
a. Find the sum of these marks and mean
b. Display the grades of each students as follows