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

Copy String

DEMO-C-32 โ€ข Programming in C

Browser-only practice

Problem Statement

Write a program that copies the contents of one string to another character by character, then prints the new string.

Constraints

Max string length: 100

Input Format

Input:

String S

Output Format

Output:

Output S

Sample Testcases

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

Sample #1
Public sample
Uber#7
Uber#7
The content Uber#7 is copied to the destination.
Sample #2
Public sample
Google!2
Google!2
The content Google!2 is copied to the destination.
Sample #3
Public sample
Compile#4
Compile#4
The content Compile#4 is copied to the destination.
Sample #4
Public sample
Apple#8
Apple#8
The content Apple#8 is copied to the destination.

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