Search
Get Started
C
C#
•
3y ago
MelodicMantis
❔ it won't work, can someone help me?
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,010
Members
View on Discord
Was this page helpful?
Yes
No
T
Thinker
•
9/23/23, 4:23 PM
You
're missing braces
M
MelodicMantis
OP
•
9/23/23, 4:23 PM
where
T
Thinker
•
9/23/23, 4:23 PM
Blocks in C
# use
{
} to denote scope
T
Thinker
•
9/23/23, 4:24 PM
M
MelodicMantis
OP
•
9/23/23, 4:24 PM
wait ill try
M
MelodicMantis
OP
•
9/23/23, 4:25 PM
okay thanks
M
MelodicMantis
OP
•
9/23/23, 4:25 PM
worked
J
Jester
•
9/23/23, 6:58 PM
you only dont need
{
} for the first line after an if statement but you should always use them to avoid mistakes
A
Accord
•
9/24/23, 7:18 PM
Was this issue resolved
? If so
, run
/close
/close
otherwise I will mark this as stale and this post will be archived until there is new activity
.
if
(boy
>
girl)
{
// ...
}
if
(boy
>
girl)
{
// ...
}