3. Create a Rust program that has a variable (fees) that can contain 32-bit integers and a variable (costs) that contain 64-bit floating point numbers. Load fees with 35000 and cost with 45000.75. Print out the values of both fees and costs. Create a third 32-bit integer variable that you don't plan on using yet called profit and make sure that Rust will not generate an "unused variable error" for this variable.
3. Create a Rust program that has a variable (fees) that can contain 32-bit integers and a variable (costs) that contain 64-bit floating point numbers. Load fees with 35000 and cost with 45000.75. Print out the values of both fees and costs. Create a third 32-bit integer variable that you don't plan on using yet called profit and make sure that Rust will not generate an "unused variable error" for this variable.
Related questions
Question
use the RUST

Transcribed Image Text:3. Create a Rust program that has a variable (fees) that can contain 32-bit integers and a variable (costs) that contain 64-bit
floating point numbers. Load fees with 35000 and cost with 45000.75. Print out the values of both fees and costs. Create a
third 32-bit integer variable that you don't plan on using yet called profit and make sure that Rust will not generate an
"unused variable error" for this variable.
AI-Generated Solution
Unlock instant AI solutions
Tap the button
to generate a solution