Below given is the code I have made for finding Non- Prime numbers between 1-100 by using Mozart OZ programming language.
Code in Mozart OZ:
declare
for A in 1..20 do
for I in 2..A div 2 break:Ab do if A mod I ==0 then {Browse A} {Ab}
end
end
end
Output in Mozart OZ is shown as :
4
6
8
9
10
12...This output is coming Vertically
However,I want the output Horizontally as shown below:
4|6|8|9|10|12....100
Please help me out in changing the code in Mozart OZ programming language as I am new to this language. Thanks.!!