Showing
1 changed file
with
5 additions
and
0 deletions
1 | use std::io; | 1 | use std::io; |
2 | 2 | ||
3 | fn main() { | 3 | fn main() { |
4 | + loop { | ||
4 | let mut input = String::new(); | 5 | let mut input = String::new(); |
5 | io::stdin().read_line(&mut input); | 6 | io::stdin().read_line(&mut input); |
7 | + if input == "exit\n" { | ||
8 | + return; | ||
9 | + } | ||
6 | print!("{}", input); | 10 | print!("{}", input); |
11 | + } | ||
7 | } | 12 | } | ... | ... |
-
Please register or login to post a comment