You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
400 B
16 lines
400 B
7 months ago
|
use std::error::Error;
|
||
|
use std::io::{self, BufRead, Write};
|
||
|
|
||
|
fn main() -> Result<(), Box<dyn Error>> {
|
||
|
let stdin = io::stdin();
|
||
|
let mut stdin = stdin.lock();
|
||
|
let mut stdout = io::BufWriter::new(io::stdout());
|
||
|
|
||
|
let mut line = String::new();
|
||
|
while stdin.read_line(&mut line)? > 0 {
|
||
|
stdout.write_all(line.to_uppercase().as_bytes())?;
|
||
|
line.clear();
|
||
|
}
|
||
|
Ok(())
|
||
|
}
|