8. What is the output of the following code? fn main() { let salary=110.00; if salary > 100.0 { } let salary=2.50; // reads the second salary println!("Value of salary: {}",salary); else { } println!("Value of salary: {}",salary); } O Value of salary: 2.50 O Value of salary: 110 Value of salary: 100 ○ unit()

icon
Related questions
Question

use the RUST

8. What is the output of the following code?
fn main() {
let salary=110.00;
if salary > 100.0 {
}
let salary=2.50;
// reads the second salary
println!("Value of salary: {}",salary);
else {
}
println!("Value of salary: {}",salary);
}
O Value of salary: 2.50
O Value of salary: 110
Value of salary: 100
○ unit()
Transcribed Image Text:8. What is the output of the following code? fn main() { let salary=110.00; if salary > 100.0 { } let salary=2.50; // reads the second salary println!("Value of salary: {}",salary); else { } println!("Value of salary: {}",salary); } O Value of salary: 2.50 O Value of salary: 110 Value of salary: 100 ○ unit()
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