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.

icon
Related questions
Question

use the RUST

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.
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
AI-generated content may present inaccurate or offensive content that does not represent bartleby’s views.
steps

Unlock instant AI solutions

Tap the button
to generate a solution