
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
This c++ program defines a calc class with fib and fact methods. The fib method takes an integer input n and prints the first n numbers in the fibonacci series. The fact method calculates the factorial of the given integer n and prints it. The main function initializes the calc object and calls the fib method.
Typology: Assignments
1 / 1
This page cannot be seen from the preview
Don't miss anything!

#include