Simple Math Program VB.NET

Sdílet
Vložit
  • čas přidán 26. 07. 2024
  • In this VB.NET tutorial we take a look at a simple math program that will add, subtract, multiply, and divide two numbers held in variables.
    If you found this video helpful make sure to give it a thumbs up and subscribe to help the channel grow. Make sure to check out our other videos to increase your programming knowledge!

Komentáře • 19

  • @debasreeroy5193
    @debasreeroy5193 Před 2 lety

    Thanks for the video, this is very helpful for my daughter for flourishing her concepts to make school projects in VB

  • @Emily-rj1ij
    @Emily-rj1ij Před 2 lety +1

    Thanks a lot 🥰🥰

  • @marxkhela4832
    @marxkhela4832 Před 3 lety

    Awesome.
    Very clear. Thanks sir

  • @nicador100
    @nicador100 Před 3 lety

    Thanks very much !

  • @usaamacali3633
    @usaamacali3633 Před 2 lety

    Thank you

  • @cjones4433
    @cjones4433 Před 2 lety

    It would have been nice to see error checking. Such as a character other than a number or if one if the lines is blank

  • @alfliescherladaga7174
    @alfliescherladaga7174 Před 2 lety

    I LOVE YOU

  • @ryanli6327
    @ryanli6327 Před 2 lety

    Is your option strict on

  • @aishakapxhiu4401
    @aishakapxhiu4401 Před 2 lety

    Can it work like this?
    answer = ( intNum1 +0 ) * ( intNum2 +0 )

    • @erbcomputerscience
      @erbcomputerscience  Před 2 lety

      That would work although you do not need to add 0 to each number since it would result in the same answer. To answer your question though, yes that would work. When you are coding mathematical equations (or Boolean expressions) the computer will execute what is parentheses first.

  • @deathriths
    @deathriths Před 2 lety

    not able to multiply with decimals

    • @erbcomputerscience
      @erbcomputerscience  Před 2 lety +1

      No worries. Simply change Num1 and Num2 to from Integer to Decimal
      Dim Num1 as Decimal
      Dim Num2 as Decimal

  • @AbdirizakAbdullahi-tc4co
    @AbdirizakAbdullahi-tc4co Před 3 měsíci

    England you help me

  • @kimberly1659
    @kimberly1659 Před 2 lety

    I can't divide

    • @erbcomputerscience
      @erbcomputerscience  Před 2 lety +2

      What do you mean? Is your program crashing? Make sure you have textboxes filled in with data before you divide. If they are empty VB does not know how to convert nothing(called a null value) to a numerical representation. If you can give me a little more info I can help you fix the issue you are having. Is the result showing 0 in the textbox?