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 22:50
Explain why it is reasonable to assume that receiving 3 duplicate acks in tcp is an indication that the network is not currently congested.
Answers: 1
question
Computers and Technology, 24.06.2019 12:30
Why does the pc send out a broadcast arp prior
Answers: 1
question
Computers and Technology, 24.06.2019 13:10
Write a program that has a conversation with the user. the program must ask for both strings and numbers as input. the program must ask for at least 4 different inputs from the user. the program must reuse at least 3 inputs in what it displays on the screen. the program must perform some form of arithmetic operation on the numbers the user inputs. turn in your .py file as well as a screenshot of your program's output. include comments in your code to explain how it works an example program run might look like (have fun with this and be creative): ‘what is your name? ’ “josh” ‘, josh. what is your favorite color? ’ “green” ‘mine too. do you also like ice cream? ’ “no” ‘josh, how old are you? ’ “40” ‘ and how many siblings do you have? ’’ “3” ‘that means you are one of 4 kid(s). is green the favorite color of anyone else in your house? ’
Answers: 3
question
Computers and Technology, 25.06.2019 06:00
Shaniya has misspelled a scientific name in her biology report. she needs to correct it, but she has no access to a computer. she plans to use the word app on her phone without an office 365 subscription. can shaniya correct her mistake? why or why not? yes, she can navigate the window and do simple editing. yes, she can use this application for free and navigate the window. no, her document is “read-only,” so she cannot navigate the window. no, her application has limited features and she cannot access the documen
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
Mathematics, 16.04.2021 04:50
question
Mathematics, 16.04.2021 04:50
question
Mathematics, 16.04.2021 04:50
question
Mathematics, 16.04.2021 04:50
question
Mathematics, 16.04.2021 04:50
Questions on the website: 13722367