Recap - Initialize Variables
Part of the Fundamentals section of Coddy's Rust journey — lesson 13 of 75.
Challenge
BeginnerWrite code that initializes the following variables:
kwith the value88piwith the value3.14namewith the value“bob”
Try it yourself
fn main() {
// Type your code below
// Don't change the lines below
println!("k = {}", k);
println!("pi = {}", pi);
println!("name = \"{}\"", name);
}All lessons in Fundamentals
4Operators Part 1
Arithmetic OperatorsModulo OperatorArithmetic ShortcutsComparison OperatorsString Comparison5Operators Part 2
Logical Operators Part 1Logical Operators Part 2Recap - Simple LogicLogical Operators Part 33Variables Part 2
Type DeclarationNaming ConventionsType InferenceRecap - Initialize VariablesType Casting9Loops
For Over SeriesWhile LoopBreakContinueNested LoopLoop LabelsInfinite LoopRecap - Dynamic Input