+ 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 🙏.

26th Jul 2020, 10:01 AM
Starrrinight
Starrrinight - avatar
9 Respuestas
+ 1
Ohhh ok I got it working. Thank you! You helped me clear up alot of things!
26th Jul 2020, 10:53 AM
Starrrinight
Starrrinight - avatar
+ 1
Opening brackets must be equal to closing brackets
27th Jul 2020, 11:34 AM
Raj Hakki
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 😞
26th Jul 2020, 10:30 AM
Starrrinight
Starrrinight - avatar
26th Jul 2020, 10:37 AM
Starrrinight
Starrrinight - avatar
0
ohhh Codemonkey then do i have to many open curly brackets?
26th Jul 2020, 10:40 AM
Starrrinight
Starrrinight - avatar
0
Sorry for so much questions but thank you for helping me
26th Jul 2020, 10:41 AM
Starrrinight
Starrrinight - avatar
0
where do I place the brackets in between though?
26th Jul 2020, 10:41 AM
Starrrinight
Starrrinight - avatar
0
woah ok Thank you! I’ll have to learn alot more. 🙏
26th Jul 2020, 10:44 AM
Starrrinight
Starrrinight - avatar
28th Jul 2020, 3:47 AM
Sunny Jewellery
Sunny Jewellery - avatar