is it right to say "two doors"?

Yes. The class room has two doors.

Yes. The class room has two doors.

Yes, it is correct to say "two doors." When counting objects like doors, we use the plural form of the noun ('doors') when there is more than one. In this case, you are referring to two doors, so the plural form is appropriate.