Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 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