Odlomak

Zadatak 1
Napisati program koji ce na osnovu dva unesena broja na njima izvrsiti osnovne racunarske operacije

Public Class Form1
Dim a As Double
Dim b As Double
Dim c As Double

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
a = txtA.Text
b = txtB.Text
c = a + b
txtRez.Text = c
End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
a = txtA.Text
b = txtB.Text
c = a – b
txtRez.Text = c
End Sub

Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click
a = txtA.Text
b = txtB.Text
c = a / b
txtRez.Text = c
End Sub

 

No votes yet.
Please wait…

Prijavi se

Detalji dokumenta

Više u Informacione tehnologije

Više u Seminarski radovi

Više u Skripte

Komentari

Click to access the login or register cheese