Latihan String IF ELSE END IF : Perbandingan Dua Kalimat
stevennathaniel Feb 3rd, 2016 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- Public Class Form5
- Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
- Dim str1, str2 As String
- str1 = "This is Test"
- str2 = "This is Test"
- If (String.Compare(str1, str2) = 0) Then
- Console.WriteLine(str1 + " and " + str2 + " are equal.")
- Console.WriteLine(str1 + " and " + str2 + " are not equal ")
- End If
- End Sub
- End Class
RAW Paste Data