We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Parentheses aren't needed here but if needed they can be escaped using \( ... \).
If you don't use pattern matching you should use the more efficient [...] instead of [[ ... ]]. But if you use [[ ... ]] you can test for ('n' or 'N') using [nN].
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Getting started with conditionals
You are viewing a single comment's thread. Return to all comments →
Parentheses aren't needed here but if needed they can be escaped using
\( ... \)
.If you don't use pattern matching you should use the more efficient [...] instead of [[ ... ]]. But if you use [[ ... ]] you can test for ('n' or 'N') using [nN].