Computer Science Canada put? |
Author: | colinrip666 [ Fri Jun 06, 2003 2:25 pm ] |
Post subject: | put? |
what does put mean?????? ![]() |
Author: | Martin [ Fri Jun 06, 2003 2:47 pm ] |
Post subject: | |
Brand new to the programming scene, I take it ![]() All that put does is 'puts' some text onto the screen. Text can include variables, strings as well as numbers put "HELLO" puts 'HELLO' on the screen put 5 puts '5' on the screen put 3 + 7 puts '10' on the screen (3 + 7 = 10) |
Author: | Mephi [ Fri Jun 06, 2003 6:38 pm ] |
Post subject: | |
use quotes for exactly what you want on the screen, say u want 3 + 7 on the screen, then do put "3 + 7" but if u wanted to actually do 3+ 7 and output the answer dont use quotes, such as put 3 + 7 which would output 10, and use commas to separate variables, like put "Hi ", name, "!" |
Author: | naoki [ Fri Jun 06, 2003 8:00 pm ] |
Post subject: | |
or put : file, name as a way of storing information into a textfile |
Author: | Andy [ Fri Jun 06, 2003 9:20 pm ] |
Post subject: | |
maybe you should read some of the tutorials?? |