aboutsummaryrefslogtreecommitdiff
path: root/rush00/ex00/rush00.rs
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-05-21 13:49:01 +0200
committerCharles <sircharlesaze@gmail.com>2020-05-21 13:49:01 +0200
commit6a8ffb8823e1bdca56b8058e496479b65d0a6f6f (patch)
treeda6300a879112dce942fc6efdb221201caba4831 /rush00/ex00/rush00.rs
parentaef0e5fc3f4fdaa20d9334ac635d907cff82f2ba (diff)
downloadpiscine-master.tar.gz
piscine-master.tar.bz2
piscine-master.zip
Rush00 in Rust???HEADmaster
Diffstat (limited to 'rush00/ex00/rush00.rs')
-rw-r--r--rush00/ex00/rush00.rs20
1 files changed, 20 insertions, 0 deletions
diff --git a/rush00/ex00/rush00.rs b/rush00/ex00/rush00.rs
new file mode 100644
index 0000000..0b52481
--- /dev/null
+++ b/rush00/ex00/rush00.rs
@@ -0,0 +1,20 @@
+/* ************************************************************************** */
+/* */
+/* ::: :::::::: */
+/* rush00.rs :+: :+: :+: */
+/* +:+ +:+ +:+ */
+/* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */
+/* +#+#+#+#+#+ +#+ */
+/* Created: 2020/05/21 13:38:42 by charles #+# #+# */
+/* Updated: 2020/05/21 13:38:43 by charles ### ########.fr */
+/* */
+/* ************************************************************************** */
+
+pub fn rush(x: i32, y: i32) {
+ for _ in 0..y {
+ for _ in 0..x {
+ print!("x");
+ }
+ print!("\n");
+ }
+}