fn main() { // This program calculates a discount let price = 100; let discount = 20; // percentage off println!("Discounted price: {}", price - discount); }
Click Run to execute this code.