% 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