using indexOf and substring to calculate a number

Printable View