Re: How can I combine this into one line of code?
- Posted by ryanj Oct 05, 2009
- 1222 views
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) & "?")