What you did is correct. However, an ideal (principal or not) is a subring only if you don't require your rings to have a multiplicative identity. If you do, then a proper ideal is never a subring.
What you did is correct. However, an ideal (principal or not) is a subring only if you don't require your rings to have a multiplicative identity. If you do, then a proper ideal is never a subring.