Let x be the oxidation number of Cl in KC––lO3.
Since the overall charge on the compound is 0, the sum of oxidation states of all elements in it should be equal to 0.
Therefore, +1+x+3(−2)=0
Hence, x=+5
Hence, the oxidation number of Cl in KCl–––O3 is +5.