Hello, friends, who they discuss in mathematical expression find whether the given number is owed
or even.
OK, so for that purpose, I just require input number, so I just take no as you see or hear.
This number is blocking type.
I just change it to the integer type integer 32 type.
OK, so here this is Mike your number.
And I just use some indicator I square indicator.
It is for the even number and I just copied this and or here I got on.
OK, so I have two indicators and one input control, and I just go to the programming part, or you
can see the block diagram part.
I just copy this.
In the block diagram, also where the given number is odd or even find out whether they're giving them
bodies or even I have to just go to the mathematical expression or here.
Here I go to Portland and they made that case.
I do it with two functions.
So first I I'm using this, so I just copy this drag and drop out here.
I just.
Here is my input, and I have to just do it and by do so if the remainder is there, I have a comparison
block.
If the given number is equal to zero, if the remainder is ill, not given, no.
In this case, the number is even OK.
So otherwise it's not even number.
So I go to the wedding function or here.
I just use the negate function.
So number is given, or only not another.
So if it is equal to zero, then it is one.
If it is not equal to zero, then it is odd.
OK.
So this is how you can find out that the given number is even or.
And I have another way of doing this is like I just used divide a function.
And book is here again, I have to divide it will do so again.
Over here, the number is again, I use the same function.
If it is equal to zero in this case, the function is even otherwise OK.
OK.
Using this way, you can do it less formal also.
So I just copy this.
So you want to?
He's using another formula.
OK.
So I just go to the bar panel park and when I put and you see.
And in this case, it gave me a number.
And over here and you see and I divide and by two, it is equal to not equal to zero in this case.
So I have to just check the value here because I'm in error is there.
Create the indicator, and it will give me the value because in this case, you have to this divide
a function only give you the.
Caution, not it will not give you the remainder.
So this logic tells or here, I just believe this.
So to find out the old and even no, the logic is this one.
So as you see, and I can invest more when money is there or no?
Well, is there even?
No, oh no, no.
Oh no, no.
So this is how you can find out on an even number using led you with mathematical expressions.
Thank you.