Shit sucks
Probably not even right
get_user_input(input, output, pathtype, pathrow):
read input
read output
read pathtype
read pathrow
return pathrow
end
read_dem(input, array1[>[>, count[>):
set infile to open(“input”
if file = 0 then
print error
return 0
else
read ROWS from infile
read COLS from infile
for (r = 0; r <= ROWS; r++)
for(c = 0; c <= COLS; c++)
read array1[r>[c> from infile
set count[> to {ROWS, COLS}
print_dem(array1[>, count[>):
set r to 0
while r < count[0>
set c to 0
while c < count[1>
print array1[r>[c>
set c to c+1
print ‘\n’
set r to r+1
print count[0> and count[1>
end
Probably not even right
get_user_input(input, output, pathtype, pathrow):
read input
read output
read pathtype
read pathrow
return pathrow
end
read_dem(input, array1[>[>, count[>):
set infile to open(“input”

if file = 0 then
print error
return 0
else
read ROWS from infile
read COLS from infile
for (r = 0; r <= ROWS; r++)
for(c = 0; c <= COLS; c++)
read array1[r>[c> from infile
set count[> to {ROWS, COLS}
print_dem(array1[>, count[>):
set r to 0
while r < count[0>
set c to 0
while c < count[1>
print array1[r>[c>
set c to c+1
print ‘\n’
set r to r+1
print count[0> and count[1>
end
