Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
|
|
@ -0,0 +1,13 @@
|
|||
sequence array
|
||||
integer height,width,i,j
|
||||
|
||||
height = floor(prompt_number("Enter height: "))
|
||||
width = floor(prompt_number("Enter width: "))
|
||||
|
||||
array = repeat(repeat(0,width),height)
|
||||
|
||||
i = floor(height/2+0.5)
|
||||
j = floor(width/2+0.5)
|
||||
array[i][j] = height + width
|
||||
|
||||
printf(1,"array[%d][%d] is %d\n", {i,j,array[i][j]})
|
||||
Loading…
Add table
Add a link
Reference in a new issue