if same number exercise