Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
18
Task/Arithmetic-Integer/Gambas/arithmetic-integer.gambas
Normal file
18
Task/Arithmetic-Integer/Gambas/arithmetic-integer.gambas
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
Public Sub Main()
|
||||
Dim a, b As String
|
||||
Dim c, d As Integer
|
||||
|
||||
Print "Enter two integer numbers, separated by space:"
|
||||
Input a, b
|
||||
|
||||
c = CInt(a)
|
||||
d = CInt(b)
|
||||
|
||||
Print "Sum: " & (c + d)
|
||||
Print "Difference:" & (c - d)
|
||||
Print "Product: " & (c * d)
|
||||
Print "Integer: " & (c Div d)
|
||||
Print "Remainder: " & (c Mod d)
|
||||
Print "Exponentiation: " & (c ^ d)
|
||||
|
||||
End
|
||||
Loading…
Add table
Add a link
Reference in a new issue