Search This Blog

Saturday, November 20, 2010

Tutorial 5

5. Math Functions


This tutorial will simply teach you how to perform simple Math Operations in Visual Basic .NET. This part of the language is really dry and boring but once you know the basics you can move onto the more advanced subjects.

Code

Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles Button1.Click
MessageBox.Show(20 + 5)
MessageBox.Show(20 - 5)
MessageBox.Show(20 * 5)
MessageBox.Show(20 / 5)
End Sub

End Class

No comments:

Post a Comment