Is this the correct way for writing a concatenation program? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Is this the correct way for writing a concatenation program?

There are no build errors but I feel like I'm missing something. string strInput1 = txtInput1.Text; string strInput2 = txtInput2.Text; string strOutput = txtInput1.Text + txtInput2.Text; txtOutput.Text = strOutput;

28th Mar 2017, 9:36 PM
Sisa
Sisa - avatar
5 Answers
+ 2
I meant to be like this: txtInput.Text + " " + txtInput2.Text
28th Mar 2017, 9:43 PM
ZeroOne;
ZeroOne; - avatar
0
if u give it space to separate them ,that's will be nice..
28th Mar 2017, 9:39 PM
ZeroOne;
ZeroOne; - avatar
0
the code is fine though ?
28th Mar 2017, 9:41 PM
Sisa
Sisa - avatar
0
don't forget ;
28th Mar 2017, 9:43 PM
ZeroOne;
ZeroOne; - avatar
0
alright, thank you bro :)
28th Mar 2017, 9:46 PM
Sisa
Sisa - avatar