Skip to content

zehr01/C_MiniLab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C_MiniLab

C Mini Projects

A collection of simple yet fundamental programs written in C, showcasing basic programming concepts like loops, functions, and user input handling. These projects are great for beginners who want to explore C programming.


Projects Included

1. Factorial Calculator

  • Description: Calculates the factorial of a given number using loops or recursion.
  • How to Run:
    1. Compile the program: gcc factorial.c -o factorial
    2. Run the executable: ./factorial
    3. Enter a number to calculate its factorial.

2. Fibonacci Series Generator

  • Description: Prints the Fibonacci sequence up to a given number of terms.
  • How to Run:
    1. Compile the program: gcc fibonacci.c -o fibonacci
    2. Run the executable: ./fibonacci
    3. Enter the number of terms to generate the sequence.

3. Number Guessing Game

  • Description: A simple game where the user guesses a random number generated by the computer.
  • How to Run:
    1. Compile the program: gcc number_guess.c -o number_guess
    2. Run the executable: ./number_guess
    3. Follow the prompts to guess the number.

4. Simple Calculator

  • Description: A basic calculator that performs addition, subtraction, multiplication, and division.
  • How to Run:
    1. Compile the program: gcc calculator.c -o calculator
    2. Run the executable: ./calculator
    3. Enter two numbers and choose an operation.

💻 Requirements

  • GCC compiler or any other C compiler.
  • Compatible with Linux, Windows, or MacOS.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages