Skip to content

arryansh5/Basic_Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿงฎ Command-Line Calculator in C

This is a simple interactive command-line calculator written in C language. It allows users to continuously perform operations like addition, subtraction, multiplication, division, and exponentiation on floating-point numbers.


๐Ÿš€ Features

  • Basic arithmetic operations:
    • + Addition
    • - Subtraction
    • * Multiplication
    • / Division (with zero-check)
    • ^ Power (exponentiation)
  • Supports decimal (float) numbers
  • Resets the calculator with = operator
  • Runs in a loop until manually stopped

๐Ÿ’ป How to Run

๐Ÿ”ง Requirements:

  • C compiler (e.g., gcc or clang)

๐Ÿงช Compile and Run:

gcc calculator.c -o calculator
./calculator

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages