24) Write a program in visual basic to calculate and print sum of ten number from one to ten?

VBI 24.PNG

Private Sub Command1_Click()
Dim i, s As Integer
Cls
For i = 1 To 10
    s = s + i
Next i
Print "Sum of ten Serial Number = "; s
End Sub

VBO 24.PNG

Advertisements

One thought on “24) Write a program in visual basic to calculate and print sum of ten number from one to ten?

  1. I’ve been browsing online more than three hours today, yet I
    never found any interesting article like yours.
    It’s pretty worth enough for me. In my view, if all website
    owners and bloggers made good content as you did, the internet will be a lot more useful than ever before.

    Like

Comments are closed.

Create a website or blog at WordPress.com

Up ↑

%d bloggers like this: