Skip to content

ChavanSuhani/Hacktoberfest

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ Factorial and Fibonacci Calculator in C++

πŸ“Œ Description

This is a simple C++ program that performs two mathematical operations based on user input:

  1. Factorial Calculation – Computes the factorial of a positive integer.
  2. Fibonacci Series Generation – Displays the Fibonacci series up to the entered number of terms.

It uses iterative logic for both operations and ensures basic input validation.


🧾 Features

  • Calculates the factorial using a loop.
  • Prints the Fibonacci series without using arrays or vectors.
  • Validates the input to ensure it's a non-negative integer.
  • Clean and modular code with separate functions for each task.

πŸ›  How to Compile and Run

πŸ”§ Using g++ on Terminal or Command Prompt:

g++ main.cpp -o math_calculator
./math_calculator

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • R 95.6%
  • Dockerfile 2.9%
  • C++ 1.5%