Skip to content

Atman-Kar/Command-Line-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Command Line Calculator

This program solves a mathematical expression (only with +,-,/,x) using BODMAS rule. The program makes use of the Shunting-Yard Algorithm.

To run the program, go to your terminal and type in:

$ gcc calc.c main.c sy.c polish_calc.c -o calc

And then,

$ ./calc

If you want to pass in a file, with lines of expressions

$ ./calc filename.txt

About

Solves an expression, using BODMAS and Djkstra's Shunting-Yard Algorithm

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages