강동현

Add exit function

Showing 1 changed file with 5 additions and 0 deletions
use std::io;
fn main() {
loop {
let mut input = String::new();
io::stdin().read_line(&mut input);
if input == "exit\n" {
return;
}
print!("{}", input);
}
}
......