Výpočet chýbajúcej číslice

zadaj číslo v tvare xxx xxx-x,
namiesto chýbajúcej číslice vlož znak X