OOP_IO-2x_2023-mirror/Rust/lab_1/src/main.rs

16 lines
296 B
Rust
Raw Normal View History

2023-05-06 23:18:57 +03:00
fn main() {
// use text_io::scan;
use text_io::read;
print!("Input: ");
// read until a whitespace and try to convert what was read into an i32
let a: i32 = read!();
/* let i: u32;
print!("Input: ");
scan!("{}", i); */
println!("You have input: {}", a);
}