Design a class to overload a function void series () as follows:
a) void series(int a, int b, int n) – takes 3 integer values and generates n terms of the
Fibonacci series.
b) void series(int n) – takes one integer value and prints the following series.
0 1 3 7 15 31---n terms
Write a main() method to call the above member methods with suitable inputs.
Answers
Answered by
0
Explanation:
esign a class to overload a function void series () as follows:
a) void series(int a, int b, int n) – takes 3 integer values and generates n terms of the
Fibonacci series.
b) void series(int n) – takes one integer value and prints the following series.
0 1 3 7 15 31---n terms
Write a main() method to call the above member methods with suitable inp
Similar questions