put?
Author |
Message |
colinrip666
|
Posted: Fri Jun 06, 2003 2:25 pm Post subject: put? |
|
|
what does put mean?????? |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Martin
|
Posted: Fri Jun 06, 2003 2:47 pm Post subject: (No 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) |
|
|
|
|
|
Mephi
|
Posted: Fri Jun 06, 2003 6:38 pm Post subject: (No 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, "!" |
|
|
|
|
|
naoki
|
Posted: Fri Jun 06, 2003 8:00 pm Post subject: (No subject) |
|
|
or put : file, name
as a way of storing information into a textfile |
|
|
|
|
|
Andy
|
Posted: Fri Jun 06, 2003 9:20 pm Post subject: (No subject) |
|
|
maybe you should read some of the tutorials?? |
|
|
|
|
|
|
|