Find the formula of potassium nitrate.
Charge on potassium is +1.
Charge on nitrate is -1.
By crossing over the charges to balance charges we get KNO3.