Multiple Function Parameters

Defining functions that take more than one parameter is done by adding more in the parentheses that are separated by commas like this:

widget(alfa: i32, bravo: f32)

Here's a full program:

SOURCE CODE

fn main() {
  println!("This is main");
  widget(7, 3.4);
}

fn widget(alfa: i32, bravo: f32) {
  println!("This is widget");
  println!("Alfa {} - Bravo {}", alfa, bravo);
}

CODE RUNNER