This document contains information about an individual named Selvia Cika Ardila including their name, student ID number, and class. It also describes two programming exercises. The first exercise displays a message box with a welcome message and the individual's name. The second exercise calculates the area of a triangle by multiplying half the base times the height and displays the result in a label.
This document contains information about an individual named Selvia Cika Ardila including their name, student ID number, and class. It also describes two programming exercises. The first exercise displays a message box with a welcome message and the individual's name. The second exercise calculates the area of a triangle by multiplying half the base times the height and displays the result in a label.
This document contains information about an individual named Selvia Cika Ardila including their name, student ID number, and class. It also describes two programming exercises. The first exercise displays a message box with a welcome message and the individual's name. The second exercise calculates the area of a triangle by multiplying half the base times the height and displays the result in a label.
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click MessageBox.Show("Selamat Datang " + TextBox1.Text, "Selvia Cika Ardila", _ MessageBoxButtons.OK, MessageBoxIcon.Information) End Sub End Class
LATIHAN 2
Public Class Form1
Dim alas As Integer Dim tinggi As Integer Dim luas As Double Private Sub Latihan2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load alas = 7 tinggi = 9 luas = 0.5 * CDbl(alas * tinggi) Label5.Text = luas End Sub End Class