subject

Viết một chương trình nhập 1 chuỗi S và số nguyên n. Chương trình sẽ cắt chuỗi đó theo số nguyên n. Điểu kiện: Nếu số ký tự trong chuỗi ít hơn giá trị n, chương trình không thay đổi chuỗi
Mô tả giá trị đầu vào :
-Dòng đầu tiên là chuỗi S
-Dòng thứ hai là số nguyên n
Mô tả giá trị đầu ra
Chuỗi S đã được rút gọn

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 19:30
Write a function processpeople() that takes the name of a file as a parameter. each line of the file corresponds to information about a person. in particular a line contains either a name (in the form lastname,firstname with no spaces in it) or a name (lastname,firstname) and a year. the function will process the file, creating a person object for each line in the file. the function will print information about each line as it processes it, as well as appending the new person object into a list. make sure to use person methods to display information rather than recreating the work you did for the first problem. once the entire file has been processed, the function returns the list of person objects created from the file. if the file is empty, the function should return an empty list. if the input file cannot be opened, the function should print a message to that effect and then return an empty list. the following shows what would be displayed for two example files which have been provided in the link. the file none.txt does not exist. note that your function must work on an arbitrary file that consists of valid lines. you cannot assume anything about the file except that it contains lines that have the format described above.
Answers: 2
question
Computers and Technology, 23.06.2019 20:30
What are some settings you can control when formatting columns?
Answers: 1
question
Computers and Technology, 23.06.2019 21:40
language consists of basic components, and they are called a. 3; mental images, concepts, and speech b. 2; language acquisition and linguistic relativity c. 3; heuristics, algorithms, and analogies d. 4; phonemes, morphemes, syntax, and semantics e. 2; words and grammar
Answers: 3
question
Computers and Technology, 24.06.2019 18:00
Hacer un algoritmo que me permita ingresar el nombre de una parcela de terreno y muestre junto al mensaje “tipo de suelos: suelos fumíferos, ¡excelente!
Answers: 1
You know the right answer?
Viết một chương trình nhập 1 chuỗi S và số nguyên n. Chương trình sẽ cắt chuỗi đó theo số nguyên n....
Questions
question
English, 23.04.2020 15:22
question
Health, 23.04.2020 15:23
question
Mathematics, 23.04.2020 15:23
Questions on the website: 13722367