\begin{now}
Discover why 18 million people worldwide trust Overleaf with their work.
Sign up for freeExplore all plans
\documentclass{article} \usepackage{amsmath} \title{Cases} \author{VK} \date{\today} \begin{document} \maketitle $$ 1+(-1)^n=\begin{cases} 0, & \text{if $n$ odd}\\ 2, & \text{otherwise} \end{cases} $$ \end{document}
Have you checked our knowledge base?
Message sent! Our team will review it and reply by email.
Email: