Bijan Krishna Paul
VILL- DEBANDI, AMTA, HOWRAH PIN-711410 Phone-9836357266
Friday, May 15, 2020
West Bengal Board class 11 visual basic program 3. get input using inputbox and then sum of digit
West Bengal Board class 11 visual basic program 3. get input using inputbox and then sum of digit
Get input using inputbox, and then sum of digits (2digit) and display using msgbox in vb6(visual basic)
Private Sub Form_Load()
Dim a, b, c As Integer
a = Int(InputBox("enter a number"))
b = a Mod 10
c = a \ 10
d = b + c
MsgBox (d)
End Sub
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment