Does dna and RNA have nitrogenous bases?

Both DNA and RNA have nitrogenous bases. The nitrogenous bases in DNA are adenine (A), thymine (T), cytosine (C), and guanine (G). The nitrogenous bases in RNA are adenine (A), uracil (U), cytosine (C), and guanine (G). In DNA, A and T pair together, as does C and G. In RNA, C and G also pair together, but A pairs with U because U replaces T in RNA.