Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let VIN = "123456789ABCDDEFG"
- let yeardigitindex = VIN.index(VIN.startIndex, offsetBy: 9)
- for yearoffset in VIN[yeardigitindex].utf16 {
- print(1945+yearoffset)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement