September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
12
Task/Integer-comparison/Gambas/integer-comparison.gambas
Normal file
12
Task/Integer-comparison/Gambas/integer-comparison.gambas
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
Public Sub Form_Open()
|
||||
Dim sIn As String = InputBox("Enter 2 integers seperated by a comma")
|
||||
Dim iFirst, iSecond As Integer
|
||||
|
||||
iFirst = Val(Split(sIn)[0])
|
||||
iSecond = Val(Split(sIn)[1])
|
||||
|
||||
If iFirst < iSecond Then Print iFirst & " is smaller than " & iSecond & gb.NewLine
|
||||
If iFirst > iSecond Then Print iFirst & " is greater than " & iSecond & gb.NewLine
|
||||
If iFirst = iSecond Then Print iFirst & " is equal to " & iSecond
|
||||
|
||||
End
|
||||
Loading…
Add table
Add a link
Reference in a new issue