Page not loading? Try clicking here.
Placeholder

#194

String 2 - Formative Assessment 6 1s - MB

Problems

Write a program that receives two strings, A and B, and an integer n.

  1. Concatenate B to A,

  2. then copy n characters from the modified A into B.

  3. Finally, print A and B.

(1 ≤ n, length of A, length of B ≤ 100)


Example

banana apple 3
bananaapple

banle

Source

자기주도C언어프로그래밍

You must sign in to write code.