Tutorial Programming

Tutorial basic, Visual Studio VB.NET 2013 Pengunaan If and Else


Hallo sahabat saya akan menjelaskan Pengunaan If and Else pada visual studio 2013, oke langsung aja

Berikut samplenya :


Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim Mark As Integer
Dim Grade as String
Mark = TextBox1.Text
If myNumber >=80 Then
Grade=”A”
ElseIf Mark>=60 And Mark <80
Grade=”B”
ElseIf Mark>=40 And Mark <60
Grade=”C”
Else
Grade=”D”
End If
End Sub



Sekian tutorial saya sahabat semoga bermanfaat yah.

No comments:

Post a Comment

Tutorial Programming Designed by Templateism | Ary EJFA Copyright © 2015

Theme images by richcano. Powered by Blogger.