From 6b9ee8d4872983fa48db9961d24f5109b442a320 Mon Sep 17 00:00:00 2001 From: Donald Wasserman Date: Tue, 6 Aug 2019 13:45:09 -0400 Subject: [PATCH] Added some rust --- hello.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/hello.rs b/hello.rs index 1c99013..52ffa87 100644 --- a/hello.rs +++ b/hello.rs @@ -4,5 +4,15 @@ fn main() { // Print text to the console println!("Hello World!"); + let mut x = 10; + let mut done = false; + + while !done { + x += x - 3; + println("X is {}", x); + + if x % 7 == 0 { + done = true; + } }