Variable represent a ratio | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Variable represent a ratio

How can you make a variable represent a ratio between two other variables?

27th Sep 2022, 1:31 AM
Mariel Domnenko
2 Answers
0
Give proper description with example you want like this a =b/c .....?
27th Sep 2022, 3:04 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
0
What programming language? To find ratios, divide a and b by their greatest common divisor. Here is a Python example: https://code.sololearn.com/czfqOoGiM0ad/?ref=app
27th Sep 2022, 4:25 PM
Brian
Brian - avatar