subrings with identity [closed]

Is there an example of a non-zero ring $R$ such that its proper subrings have identity but $R$ has no identity ? or even is it possible that proper non-zero subrings of $R$ have the same identity but $R$ has no identity element ??

-

closed as off topic by S. Carnahan♦Feb 9 '13 at 7:53

Questions on MathOverflow are expected to relate to research level mathematics within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here. If this question can be reworded to fit the rules in the help center, please edit the question.

Please read mathoverflow.net/howtoask and then revise this question. At present, it looks like homework. If it is homework, please read mathoverflow.net/faq and look over other sites where your question is more appropriate. –  Theo Johnson-Freyd Feb 9 '13 at 7:17
I am new in this site. I have revised the question. –  vitimi Feb 9 '13 at 7:45
Depending on your definition of "non-zero ring", there is a suitable object with 2 or 4 elements. –  S. Carnahan Feb 9 '13 at 7:55
In representation theory of $p$-adic groups, one of the fundamental constructions there is of the Hecke algebra, which is the space of locally constant functions (on the group) with compact support. If you put a Haar measure on the group then this space becomes a ring, typically with no identity. However the Hecke algebra is a union of sub-algebras consisting of functions which are bi-invariant under some fixed open compact $K$, and these bi-invariant functions form a subring with identity (the identity being the characteristic function of $K$ multiplied by a suitable constant). –  user30035 Feb 9 '13 at 7:57