Code Geass has a sad ending in the English ending, but the Japanese version does not, they are making a 3rd season.
The two ending don't contradict each other though, the American ending simply had something cut out. I don't want to spoil it if you decide to watch it.