Part of text

Report a typo

In your edition, it is customary to put the first paragraph in the preview of the article. But the text comes to you in the program as a whole. In order to optimize the process and not copy this paragraph manually every time, you decided to write a small program that takes all the text from standard input (stdin) and displays only one paragraph.

Please note that each paragraph of text in the electronic representation is a separate line. So one must remember the stream input function, which allows you to scan with the newline character \n as a delimiter.

Sample Input 1:

Package os provides a platform-independent interface to operating system functionality.
The design is Unix-like, although the error handling is Go-like; failing calls return values of type error rather than error numbers. Often, more information is available within the error. For example, if a call that takes a file name fails, such as Open or Stat, the error will include the failing file name when printed and will be of type *PathError, which may be unpacked for more information.
The os interface is intended to be uniform across all operating systems. Features not generally available appear in the system-specific package syscall.
Here is a simple example, opening a file and reading some of it. 

Sample Output 1:

Package os provides a platform-independent interface to operating system functionality.
Write a program in Go
package main

import (
"bufio"
"fmt"
"os"
)

func main() {
scanner := bufio.?(?)

scanner.?()
fmt.Println(?.Text())
}
___

Create a free account to access the full topic