mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-01-08 03:39:18 +00:00
Exercise 4
This commit is contained in:
parent
f8dc6d0510
commit
43273aefa9
@ -3,10 +3,10 @@
|
|||||||
// Execute `rustlings hint variables2` or use the `hint` watch subcommand for a
|
// Execute `rustlings hint variables2` or use the `hint` watch subcommand for a
|
||||||
// hint.
|
// hint.
|
||||||
|
|
||||||
// I AM NOT DONE
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let x;
|
let x: i32 = 0;
|
||||||
if x == 10 {
|
if x == 10 {
|
||||||
println!("x is ten!");
|
println!("x is ten!");
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user