Toggle navigation
Toggle navigation
This project
Loading...
Sign in
강동현
/
test1234
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
강동현
2021-03-26 12:34:45 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
73d5fcce76115a136c355bace7e9a4cdaea1e8bc
73d5fcce
1 parent
ce54a3c4
Add exit function
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
echo.rs
echo.rs
View file @
73d5fcc
use
std
::
io
;
fn
main
()
{
let
mut
input
=
String
::
new
();
io
::
stdin
()
.read_line
(
&
mut
input
);
print!
(
"{}"
,
input
);
loop
{
let
mut
input
=
String
::
new
();
io
::
stdin
()
.read_line
(
&
mut
input
);
if
input
==
"exit
\n
"
{
return
;
}
print!
(
"{}"
,
input
);
}
}
...
...
Please
register
or
login
to post a comment