IF(<boolean expression>)
{
<block of statements>
}
PROCEDURE main()
{
DISPLAY("Enter a number: ")
x <- NUMBER(INPUT())
IF(x = 42)
{
DISPLAY("You found the secret!\n")
}
DISPLAY("Thanks for playing!\n")
}
main()
x <- NUMBER(INPUT())
IF(x > 0)
{
DISPLAY(x)
}
DISPLAY("Goodbye")