Hey everyone.
In the last video we have defined the interface and in the studio we go with the mathematical functions
and they're very easy to define you wouldn't understand.
Only by going through once.
So I would simply to add it to numbers a b and then just return A plus B as it then we have subtract
again plus A B and return A minus B.
There we go.
Then we have multiply so one for that one.
A comma B and written is Darby
they will after that one divide.
So Dave for that can equal my B and return a divided by B.
After that when we have more so for that one just more simply a Modi equal maybe.
And right.
So what have we done
a percentage B.
David go with the basic functions after this.
I will also define the end segment at CFR here.
So simply calcium equal maybe.
And how I defined the axiom I would just take the logic of these two and check whether is divisible
by both of these or not so l equal to a if a greater than B a device B.
So again a variable that uses conditional and have two different values based on the condition.
So the one that is greater will be provided to and I will use a loop hip while my L is less than equal
to a start B.
So in that case I will check whether of these like this one is divided by both of these or not.
So if my L reminder with a equal to equal to zero and l reminder B equal to equal to zero.
So this is the condition when this one is divided by both of the numbers then in that case it means
that this one is the LTM.
So in that case I will just return it and by using this one again and again I will get the LC him and
how I will use this one again and again I will just increment the L by one up to the condition I will
reach this point so l purse equal to 1.
So incremental 1 or better.
You can also do less equal to helpless.
They've got the DLC and now the Etsy if simply Etsy if again these two and B and I will define another
variable here that is etch and that will be simply a if my a less than B a device B labial.
And again a loop here.
But this time up to the point when x is greater than equal to 1.
So we need to check the greater than equal to 1.
I hope you have the knowledge of these mathematical formulas and after that one I will check whether
this one right now there we have checked these two.
Now this one is dividing both of these or not so simply a percentage each equal to equal to zero and
b percentage edge equal to equal to C2 so in that condition just return the edge and they David.
And here we will use a decrement edge minus equal to one.
So it will be documented by 1 every time the loop continues.
So there we go with the mathematical operations and hope you get all of these.
So this is about the mathematical operations and just two more steps are left here.
So thanks for watching and I assume the next video.