Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mixedTypes
- w "1" + 1,! ; output: 2 - "1" is equal to 1.
- w 1 + "bread",! ; output: 1 - "bread" starts with a letter, so it equals 0.
- w 5 * "2 eggs",! ; output: 10 - "2 eggs" starts with "2", so it equals 2
- w "milk: 1 gallon" * 2,! ; output: 0 - the string starts with a letter, so it equals 0.
- q
Add Comment
Please, Sign In to add comment