Previous Next
0 / 23
Module DEMO-32-108DEMO-C-32

Concatenate Strings

DEMO-C-32 โ€ข Programming in C

Browser-only practice

Problem Statement

Write a program that reads two separate strings and joins them together into a single string. The second string should be appended to the first.

Constraints

Max string length: 100

Input Format

Input:

S1 S2

Output Format

Output:

S1S2

Sample Testcases

Submit runs every public testcase in this browser. Results and code never leave this device.

Sample #1
Public sample
tangerine mouse
tangerinemouse
Concatenating tangerine and mouse results in tangerinemouse.
Sample #2
Public sample
client thread
clientthread
Concatenating client and thread results in clientthread.
Sample #3
Public sample
laptop laptop
laptoplaptop
Concatenating laptop and laptop results in laptoplaptop.
Sample #4
Public sample
html kanban
htmlkanban
Concatenating html and kanban results in htmlkanban.

Web terminal

C, C++, Java, and Python run locally in a browser VM. No worker or visualizer is used.

Saved in this browser
Editor settings