Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Create a variable named name.
- Display "Enter your name: " and a newline.
- Vary the value of name to call function "ask".
- Make another variable called age.
- Display "Enter your age: " and a newline.
- Set the value of age to call function "to number" with call another function "ask".
- Display "The name is " and the name.
- Show "." plus a newline.
- Show "The age is ".
- Display the age.
- Show "." and another newline.
- If the name equals "World" then:
- Display "Hello World!" and a newline.
- Display another newline.
- That's all.
- Else, then:
- Display "Now this is no longer a 'Hello, world!' program..." and a newline.
- That's all.
- If the age is larger than 100 or the age equals 100 then:
- Display "You are very old." and a newline.
- Display another newline.
- That's all.
- Otherwise, then:
- Display "You are less than 100 years old." and a newline.
- That's it.
- Show "Bye!" and a newline.
- Stop.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement