RosettaCodeData/Task/Conditional-structures/C-sharp/conditional-structures-2.cs

3 lines
83 B
C#
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
// if condition is true var will be set to 1, else 2.
int var = condition ? 1 : 2;