Skip to content

shapthan-simcode/calculator-in-c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

Calculator in C

This is a simple Calculator program written in C.
It performs basic arithmetic operations:

  • Addition (+)
  • Subtraction (-)
  • Multiplication (*)
  • Division (/)

Features

  • Menu-driven (choose an operator)
  • Works with floating-point numbers
  • Handles division by zero

How to Run

  1. Clone the repository:
    git clone https://github.com/YOUR_USERNAME/C-Calculator.git
    cd C-Calculator

gcc calculator.c -o calculator ./calculator Simple Calculator in C

Enter an operator (+, -, *, /): * Enter two numbers: 5 3 Result: 15.00

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages