/****************************************************************************** * This program reads bytes from STDIN and prints them in decimal format. * * Copyright © 2020 Richard Lesh. All rights reserved. *****************************************************************************/ mod utils; fn main() { binmode(cin); let mut c:u8 = 0; let mut count:isize = 0; while getbyte(c) { print!("{} ", c); count += 1; if count % 20 == 0 { println!(""); } } if count % 20 != 0 { println!(""); } }