put?
Author |
Message |
colinrip666
|
Posted: Fri Jun 06, 2003 2:25 pm Post subject: put? |
|
|
what does put mean?????? ![Embarassed Embarassed](http://compsci.ca/v3/images/smiles/icon_redface.gif) |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Martin
![](http://www.compsci.ca/wiki/images/4/46/CanadianStickUp.jpg)
|
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) |
|
|
|
|
![](images/spacer.gif) |
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, "!" |
|
|
|
|
![](images/spacer.gif) |
naoki
![](http://members.lycos.co.uk/switch01/raidenex.bmp)
|
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 |
|
|
|
|
![](images/spacer.gif) |
Andy
|
Posted: Fri Jun 06, 2003 9:20 pm Post subject: (No subject) |
|
|
maybe you should read some of the tutorials?? |
|
|
|
|
![](images/spacer.gif) |
|
|