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
AI-Generated Solution
AI-generated content may present inaccurate or offensive content that does not represent bartleby’s views.
Unlock instant AI solutions
Tap the button
to generate a solution