Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
7
Task/String-length/ALGOL-68/string-length-2.alg
Normal file
7
Task/String-length/ALGOL-68/string-length-2.alg
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
STRING str := "hello, world";
|
||||
INT length := UPB str;
|
||||
printf(($"Length of """g""" is "g(3)l$,str,length));
|
||||
|
||||
printf(($l"STRINGS can start at -1, in which case LWB must be used:"l$));
|
||||
STRING s := "abcd"[@-1];
|
||||
print(("s:",s, ", LWB:", LWB s, ", UPB:",UPB s, ", LEN:",UPB s - LWB s + 1))
|
||||
Loading…
Add table
Add a link
Reference in a new issue