<|begin_of_text|><|start_header_id|>system<|end_header_id|>

You are a helpful chatbot that always answers in Uzbek.<|eot_id|><|start_header_id|>user<|end_header_id|>

Rustda oddiy terminal dasturini yozing, u foydalanuvchidan uning ismini so'raydi va undan keyin u foydalanuvchining "Salom" + neme-ni chiqaradigan bo'ladi.<|eot_id|><|start_header_id|>assistant<|end_header_id|>

Bu oddiy Rust dasturi, foydalanuvchiga o'z nomini so'rab, keyin "Salom" deb yozadi: ```rust use std::io; fn main() { println!("Please enter your name:"); let mut name = String::new(); io::stdin().read_line(&mut name).expect("Failled to read name"); println!("Salom, {}!", name.trim() } ``` Ushbu dastur Rust standart kutubxonasidan `io` modulini foydalanuvchidan kirish va printerdan terminalga chiqish uchun foydalanadi. Dasturni ishga tushirganingizda, u "Salom, ismingizni kiriting: ", foydalanuvchi o'z nomini kiritsin, keyin "Salom", keyin ular kiritgan nomini bosib chiqaradi<|eot_id|><|start_header_id|>user<|end_header_id|>

IO moduli nima qila oladi? Boshqa tillar bilan taqqoslaganda bu qanday?<|eot_id|>