F

iomanip,setw,setfill,consider range to simplfy.