Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
My program calls for the quadratic equation. Three different text boxes for inputting the "A", "B", and "C" variables. Then two different text boxes for the positive and negative answers. So far here is my coding. I know that there are mistakes in the code but Hey I'm just a beginner.
Private Sub cmdCalculate_Click()
Dim intAvariable As Integer
Dim intZ As Integer
Dim intx As Integer
Dim intBvariable As Integer
Dim intCvariable As Integer
'quadratic equation = negative B plus/minus square root of 4*A*C divided by 2*A
intBvariable = -intBvariable
intZ = intAvariable * 2
intx = intAvariable * 4 * intCvariable
Me.txtMinus = intBvariable - sqrtintX / intZ
Me.txtPlus = intBvariable + sqrtintX / intZ
Thanks for your input,