+ 1
I don’t get these things { and what is wrong with this?
First I don’t get these { why are they placed like { { { This Also are spaces important or do they just keep things more organized? Also why doesn’t this work using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SoloLearn { class Program { static void Main (string[] args) { Int x = 5; Int b = 3; If ( x > b ) { Console.WriteLine(“x is Greater than b“); } Someone please help explain this to me. I’m very young so I might just have skipped over something on accident. I’m just trying to learn coding so I can be successful in the future 🙏.
9 ответов
+ 1
Ohhh ok I got it working. Thank you! You helped me clear up alot of things!
+ 1
Opening brackets must be equal to closing brackets
0
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SoloLearn
{
class Program
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SoloLearn
{
class Program
{
static void Main (string[] args)
{
Int x = 5;
Int b = 3;
If ( x > b )
{
Console.WriteLine(“x is Greater than b“);
}
}
}
so like this? I put it in but it still gave me errors 😞
0
ohhh Codemonkey then do i have to many open curly brackets?
0
Sorry for so much questions but thank you for helping me
0
where do I place the brackets in between though?
0
woah ok Thank you! I’ll have to learn alot more. 🙏