How to make Visual Basic Age Calculator App

Danial-Softwares

How to make Visual Basic Age Calculator App

How to make Visual Basic Age Calculator App

Hello everyone, I’m here again with a new update. Today I will be teaching you guys how to code an age calculator application using visual basic. It’s quite difficult due to the abstract thinking. For example, if your birthday is in September (9) and the month at the moment is January (1) then when doing raw subtracting the outcome will be a negative. Same goes for the day. So you must use a certain formula that will calculate without having the outcome be negative. We use an “if statement” saying that if the current month or day is smaller than the birthday, then subtract 1 from the outcome. We have also added “if statements” for the month’s days since not all months, of course, have the same number of days. Here is the code example:

 

 

Download The Age Calculator App:

-8ball55

1 Comment

Submit a Comment

Your email address will not be published. Required fields are marked *