Friday, October 22, 2010

Here you go, peeps. :)

A quick successive post; here's selection number one that we figured out during class, Andre!

% Declaration section
var mark_out_of_100 : int
const PASS_MARK := 50

% Input section
put "What is your mark (out of 100) ? " ..
get mark_out_of_100

% Processing section
if mark_out_of_100 >= PASS_MARK then
         put "You have passed the test."
else
         put "You have failed the test."
end if


No comments:

Post a Comment