-->
当前位置:首页 > 题库

PROGRAMMING:Copy n characters

Luz5年前 (2021-05-10)题库450
Copy the first n characters in a string to a character array. The value of n is less than the actual length of the string. Strcpy function is not allowed.
###Input format:
In the first line, enter a string no more than 20 in length and end with carriage return. In the second line, enter an integer n.
###Output format:
Output the string that meets the condition on one line.
###Input example:
```in
asdfghj
three
```
###Output example:
```out
asd
```






answer:If there is no answer, please comment