Toggle navigation
Toggle navigation
This project
Loading...
Sign in
윤준석
/
open-source-gitbranch-assignment2
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
윤준석
2022-03-26 21:13:27 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5e9919acf5fc261915215177bd13d36cd1600ef7
5e9919ac
1 parent
ab01c553
ADD: implements exit function
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
main.go
main.go
View file @
5e9919a
...
...
@@ -13,6 +13,15 @@ func main() {
fmt
.
Print
(
"input: "
)
sc
.
Scan
()
input
=
sc
.
Text
()
exit
(
input
)
fmt
.
Printf
(
"output: %s
\n
"
,
input
)
}
}
func
exit
(
input
string
)
{
if
input
==
"exit"
{
os
.
Exit
(
0
)
}
}
\ No newline at end of file
...
...
Please
register
or
login
to post a comment