chi chi com app

2
Enriquez, Chiriathjearim C BSABEn-4 Activity No. 2 Code Private Sub Command1_Click() 'Calculation of value Sum = Val(Text1.Text) + Val(Text2.Text) Difference = Val(Text1.Text) - Val(Text2.Text) Product = Val(Text1.Text) * Val(Text2.Text) Quotient = Val(Text1.Text) / Val(Text2.Text)

description

bjkm bjlb jkml jmkbnki;n

Transcript of chi chi com app

Enriquez, Chiriathjearim CBSABEn-4Activity No. 2

Code

Private Sub Command1_Click()'Calculation of valueSum = Val(Text1.Text) + Val(Text2.Text)Difference = Val(Text1.Text) - Val(Text2.Text)Product = Val(Text1.Text) * Val(Text2.Text)Quotient = Val(Text1.Text) / Val(Text2.Text)'To display the answer on label 1Label1.Caption = Sum'To display the answer on label 2Label2.Caption = Difference'To display the answer on label 3Label3.Caption = Product'To display the answer on label 4Label4.Caption = QuotientEnd Sub