Menu
Coddy logo textTech

Getting Numbers

Part of the Fundamentals section of Coddy's Rust journey — lesson 34 of 75.

challenge icon

Challenge

Beginner

The next part of our program is to get input from the program user.

After the welcome message, get two numbers (f64) from the user and store them in variables named num1 and num2.

After getting the numbers, print them to the console using println to verify the input.

Try it yourself

fn main() {
    println!("Calculator App");   
}

All lessons in Fundamentals