Program to find sum of two numbers in VB.NET language?

1 answer

Answer

1034238

2026-05-20 16:35

+ Follow

Option Explicit

Dim a as integer

Dim b as integer

Dim c as integer

Dim result as integer

a=val(text1.text)

b=val(text2.text)

c=val(text3.text)

result=a+b+c

'now we want to push the result to another text box ,below code insert into the button click event

text4.text=result

text1.text=""

text2.text=""

text3.text=""

Rename the cmd button

As sum.

And run the program by pressing F5 key.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.