Quyidagi rustik kod matritsa satrma-satr bosib chiqarish uchun ishlatilishi mumkin. Men uni osonlikcha bajarish uchun asosiy funksiya bilan o'rab oldim: ``` fn main ((() { let arr:[i32; 2] = [1,2]; 0..arr.len (() { println!("{}", arr[index]); } } ```` Chiqish: ``` 1 2 ``` Rust println funksiyasi matritsa tarkibini to'g'ridan-to'g'ri bosib chiqarishi mumkinligini unutmang: ``` fn main) { let arr:[i32; 2] = [1,2]; print!ln("Array {:}", arr); } ``` Chiqish: `` Array ["1", "2"] ``` Bu savolda ko'
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence