The rule stating that in DNA, cytosine pairs with guanine and adenine pairs with thymine and in RNA, adenine pairs with uracil.