RosettaCodeData/Task/Compare-length-of-two-strings/PureBasic/compare-length-of-two-strings.basic
2023-07-01 13:44:08 -04:00

14 lines
283 B
Text

Procedure comp(A.s, B.s)
If Len(A) >= Len(B)
PrintN(A + #TAB$ + Str(Len(A)))
PrintN(B + #TAB$ + Str(Len(B)))
Else
PrintN(B + #TAB$ + Str(Len(B)))
PrintN(A + #TAB$ + Str(Len(A)))
EndIf
EndProcedure
OpenConsole()
comp("abcd", "123456789")
Input()
CloseConsole()