Re: How can I combine this into one line of code?

new topic     » goto parent     » topic index » view thread      » older message » newer message
tiger0581 said...
puts(1,"What is ") 
print(1,first_number) 
puts(1," + ") 
print(1,second_number) 
puts(1,"?") 

First_number and second_number are variables for two integers. Thanks.

I have a habit of doing this:

puts(1, "What is " & sprint(first_number) & " + " & sprint(second_number) & "?") 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu