Exerpad
🔥 0
0 XP
Exercise 1 · Chapter: Tuples & StructsRequired+50 XP

Point Tuple

Create a tuple called point with two values: 4 and 9. Then print the point in this format:

Expected output:

Point: 4, 9

Hints:

  • Create a tuple with let point = (4, 9);
  • Access the first value with point.0 and the second with point.1
rust
fn main() {
}
Output
Run your code to see the output here.