theholyone
2015-02-24 03:01:16
After struggling for 3hrs now, I have finally got my little snipit of code working, but i've found one little problem
the less than < and greater than > signs have been mixed up
if i do
if apples > 50 then
writeln('apples are greater than 50');
else if apples < 50 then
writeln('apples are less than 50');
the results will be the opposite,
where apples > 50 will print out less than
and apples < 50 will print out greater than
unless i'm just a complete fool and i'm somehow reading the signs wrong..
and that is not the snippet i spent 3hrs on :P luckily lol
the less than < and greater than > signs have been mixed up
if i do
if apples > 50 then
writeln('apples are greater than 50');
else if apples < 50 then
writeln('apples are less than 50');
the results will be the opposite,
where apples > 50 will print out less than
and apples < 50 will print out greater than
unless i'm just a complete fool and i'm somehow reading the signs wrong..
and that is not the snippet i spent 3hrs on :P luckily lol