![]() Step 9: For this, use Const as in Constant with B and give it a variable Double. So, if we create a constant where if we fix the value of multiplier which is 4 as we have for other variables then it will reduce our frequent activities. Now we may end up in a situation where we have to change the value stored in variable A multiple times by keeping the constant value of multiplier as 4. We will get the message box with multiple of 123 and 4 as 492 as shown below. Step 8: Now compile the code and run it after clicking on the Play button as shown below which is below the menu bar. Step 7: Now to print the output, we will use MsgBox as shown below. Step 6: Now in a simple mathematical multiplication problem, let’s multiply variable A with 4 and get the output in variable C as shown below. Step 5: Now again define a new variable C as Integer. By this, we will store this value under variable A. ![]() Step 4: Now assign any value in variable A. This will allow us to consider all whole numbers in it. Step 3: Define a variable A as Integer first.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |