I think you mean two operands, not two digits.
You need to reuse one of the operands to continue computation, by processing the result with itself and the new value. For example, if doing addition:
Dim number, addend As Double
number = 5 ' 'first operand
addend = 3 ' 'second operand
number = number + addend ' 'result
addend = 2 ' 'add another number
number = number + addend ' 'next result
'etc.
For further assistance, you need to post your code.
here is my code in my equals button and the operator buttons
Private Sub btnPlus_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPlus.Click
val1 = txtDisp.Text
txtDisp.Clear()
choice = "plus"
End Sub
Private Sub btnEquals_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnEquals.Click
If choice = "plus" Then
ans = val1 + Val(txtDisp.Text)
txtDisp.Text = ans
ElseIf choice = "subtract" Then
ans = val1 - Val(txtDisp.Text)
txtDisp.Text = ans
ElseIf choice = "multiply" Then
ans = val1 * Val(txtDisp.Text)
txtDisp.Text = ans
ElseIf choice = "divide" Then
ans = val1 / Val(txtDisp.Text)
txtDisp.Text = ans
End If
End Sub
Private Sub btnSubtract_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSubtract.Click
val1 = txtDisp.Text
txtDisp.Clear()
choice = "subtract"
End Sub
Private Sub btnMultiply_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnMultiply.Click
val1 = txtDisp.Text
txtDisp.Clear()
choice = "multiply"
End Sub
Private Sub btnDivide_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDivide.Click
val1 = txtDisp.Text
txtDisp.Clear()
choice = "divide"
End Sub
Private Sub btnClear_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnClear.Click
txtDisp.Clear()
End Sub
End Class