Skip to content
code
vault
Learn
Leaderboard
Certificates
Shop
Sign in
☰
Learn
Leaderboard
Certificates
Shop
Sign in
All
/
C#
C#
Ternary
Inline conditional.
💡 THINK OF IT LIKE…
▸ YOUR TURN
Write: var s = n > 0 ? "pos" : "neg";
Need a hint?
ternary-cs.csharp
+90 XP
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Tab
indent ·
Shift+Tab
outdent ·
⌘/Ctrl + Enter
submit · auto-pairs
( [ { " '
Reset
▶ Run & Submit
Ask AI tutor
↑
⌕
Quick jump
⌘K