Add all the assignment code.
Signed-off-by: jmug <u.g.a.mariano@gmail.com>
This commit is contained in:
parent
58c6b1f81c
commit
cfe502c598
1277 changed files with 48709 additions and 1 deletions
9
hw4/oatprograms/lib5.oat
Normal file
9
hw4/oatprograms/lib5.oat
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
int program (int argc, string[] argv) {
|
||||
var str = "hello";
|
||||
var arr = array_of_string (str);
|
||||
var s = 0;
|
||||
for (var i=0; i<5; i=i+1;) {
|
||||
s = s + arr[i];
|
||||
}
|
||||
return s;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue