Nacti prvni, vynasob deseti, pricti druhe, vynasob deseti, pricti treti... Staci jeden jednoduchy for cyklus.