Skip to content

rodukov/MathProportion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MathProportion

Simple mathematical proportion in c++ language

How to use?

Set fraction values in the order numerator-denominator = numerator-denominator
Example:
51(first) 16(third)
--------- = --------
x(second) 41(fourth)

Run(c++)

To compile and run it: g++ main.cpp -o main && ./main
You can also use run.sh: chmod +x run.sh && ./run.sh
Run only binary file: chmod +x main && ./main

Not one-line code compilation

First, install g++(Debian/Ubuntu): sudo apt install g++
Second, compile: g++ main.cpp -o main
Third, run it: ./main

Run(js)

You need to install node.js, then run the command: node main.js