So basically, what we were trying to see is how we can use functions, how we can write functions, how we can call functions and what kind of different things we can do using the functions, the function parameters, things like that, okay, so how you can pass parameters And do the things that you want how you can make things very easy, nice and beautiful, using the function? Okay, so – and we now know how function helps when we want to write sorry, i would ah when we want to avoid writing the whole code inside the white loop, but only inside the function and we can use the function. So functions are very useful in that context. Okay, so today, right um, we can continue from where we left okay. So what we will try to do is so you know what we have been doing here right. You can do you. Do addition, subtraction multiplication right using functions. Okay, keep it aside! Uh. We will try to do one more small thing like because now, when im manually, giving the value a right, a is m and p right. So what if i give a chance to the user to have a button? Okay to have a button for each and every operation? Right so lets say we have button one that will uh. If i press it, the five lets say numbers are fixed. Sorry guys, if you press the first button, that is, that will do the addition scenario.

The second button will do this subtraction and third, but button will do the multiplication scenario, so you can think like we give three push buttons to the user and ask the user to press anyone. You want anything you want. So if you press the first push button, that is for addition, so we will return the addition value. Okay, if you press the second push button, that is for subtraction, we will return the subtraction value and if you press the third push button, you will return the multiplication value. Okay, so uh numbers lets, keep it constant like 5 and 10 for the moment, but we can give him the option of giving the addition or subtracting a multiplication choice. Okay. So since we have the push button, not the letters, he may not be able to give error income input, okay, because we are only three push buttons. So what i will do is first, i will remove this this error scenario i dont need for now. So what i will do is i will write an if condition: okay, before that, before that stringy also, we dont know we dont want because im not using their scenario now, so i stringy also, i will remove uh first, i will have three buttons and i am Going to read them, okay, so lets say the button sign, pin number two three and four okay, so im going to do three digital read scenarios digital read so first button is in pin number two its okay.

I will call this as lets say x. Lets give the number b1 that means button, one, okay or otherwise we will say b a that means uh addition button. Okay, then we will have bs subtraction button button for subtraction. So lets read that button connect the push button to pin number three okay and then bs. That means part button. Four sorry bm button for multiplication, so that is going to be pin number four, so im going to connect three buttons in three pins: digital pins. Two three: four: okay and my what so i i also want to say the pin mount of those buttons, so they are going to be input pull up. So you know those things right because we are studying enough. So if we are taking a button uh as an input or a pin for an input button, so we normally go for input, pull ups. Okay and you know what is input pull up and what other things we do with the right hand, what is the meaning of it? What is the meaning difference of the input and input pull up? You know all those things: okay, so pin mode. Two pin note 3 and pin mode 4. Are input pull up button pins? Okay, now, uh see 2 3 4 pin mode b i mentioned, and we are using the two three four pins. That means everything is clean, clear, okay, so now what i am going to do is i am going to find okay.