Answer to Question #300939 in C++ for Izha

Question #300939

Input Combination


by CodeChum Admin



We’ve tried adding together integers, so how about adding characters as well? Well we really don't know how to create a variable that holds the combined characters (at least for now) so let's just print them together in 1 string instead.







Instructions:



Input two characters in one line, separated by a space.


Make the strings be printed out like it’s concatenated (or combined) by printing it without spaces in between. Refer to the sample output for your reference.


Input



A line containing two characters separated by a space.



A·B


Output



A line containing two characters.



AB

1
Expert's answer
2022-02-22T06:45:41-0500
line = input()
ch1, ch2 = line.split()
res = ch1 + ch2
print(res)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog