forked from nishitpanchal395/projecthactoberfest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Calculator.vb
41 lines (34 loc) · 789 Bytes
/
Calculator.vb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Option Explicit On
Option Strict On
Public Structure Calculator
Private _a As Double
Private _b As Double
Public Property a() As Double
Get
Return _a
End Get
Set(value As Double)
_a = value
End Set
End Property
Public Property b() As Double
Get
Return _b
End Get
Set(value As Double)
_b = value
End Set
End Property
Public Function Add() As Double
Return _a + _b
End Function
Public Function Subtract() As Double
Return _a - _b
End Function
Public Function Multiply() As Double
Return _a * _b
End Function
Public Function Divide() As Double
Return _a / _b
End Function
End Structure