Simple mathematical proportion in c++ language
Set fraction values in the order numerator-denominator = numerator-denominator
Example:
51(first) 16(third)
--------- = --------
x(second) 41(fourth)
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
First, install g++(Debian/Ubuntu): sudo apt install g++
Second, compile: g++ main.cpp -o main
Third, run it: ./main
You need to install node.js, then run the command: node main.js