integer array(5) x
integer max
integer i
for i = 0; i < x.size; i = i + 1
x[i] = Get next input
max = x[0]
for i = 1; i < x.size; i = i + 1
if x[i] > max
max = x[i]
Put max to output

Coral is a simple language for learning programming. Coral has a code (text) version and a flowcharts version, representing the same underlying language. This spec is for the code version. Coral…

This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.