I was given this question class today and I wasn't quite sure how to solve it

"There are $10$ computers all connected with a cable to each other computer"

1) How many wires are there?

2) How many cables will there be with $20$ computers?

3) How can you find the nth number of cables?