Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 How can I put this on 1 line
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
thomasb




PostPosted: Mon Jan 24, 2011 3:16 pm   Post subject: How can I put this on 1 line

This program is to convert from centimetres to inches but I'm not sure how to make that bottom line on the same line as "the length in inches is"
put"Welcome to converter"
var cent : int
put"Please enter the length in centimetres"
get cent
put"the length in inches is"
put (cent*2.54)
Sponsor
Sponsor
Sponsor
sponsor
TerranceN




PostPosted: Mon Jan 24, 2011 3:19 pm   Post subject: RE:How can I put this on 1 line

You can put a '..' after the put statement, and it will not go to the next line.

Turing:

put "a"..
put "b"
Sur_real




PostPosted: Mon Jan 24, 2011 3:21 pm   Post subject: Re: How can I put this on 1 line

or you can add a comma in between...

Turing:

put "aa","bb"
thomasb




PostPosted: Mon Jan 24, 2011 3:22 pm   Post subject: RE:How can I put this on 1 line

thanks both
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: