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()
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()
Related questions
Question
use the RUST

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
Unlock instant AI solutions
Tap the button
to generate a solution