Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,12 @@
|
|||
procedure convert (str)
|
||||
write (left(str, 10) || " = " || integer(str))
|
||||
end
|
||||
|
||||
procedure main ()
|
||||
convert (" 2r1001")
|
||||
convert (" 8r7135")
|
||||
convert ("16rABC1234")
|
||||
convert ("36r1Z")
|
||||
|
||||
write ("2r1001" + "36r1Z") # shows type conversion, string->integer
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue