+ 1

any help?

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SoloLearn { class Program { static void Secretscore() { Console.WriteLine ("and his exam score actually is 60 :P"); } static void Func(int x) { Console.WriteLine(x*2); } static void Main(string[] args) { string name; string age; name = Console.ReadLine(); age = Console.ReadLine(); Console.WriteLine ("hello {0}",name); Console.WriteLine (" {0} age is {1}",name,age); Secretscore (); int jokowi = 100; int prabowo = 50; if (jokowi>prabowo) { Console.WriteLine ("JOKOWI WIN"); } else { Console.WriteLine ("PRABOWO WIN"); } Func(5); //Outputs 10 Func(12); //Outputs 24 Func(42); //Outputs 84 } } } } the error sign says ..\Playground\(53,1): error CS1022: Type or namespace definition, or end-of-file expected

20th Oct 2019, 6:30 AM
RezaKoplak406
RezaKoplak406 - avatar
6 Antworten
+ 2
https://code.sololearn.com/cS76rWmhC55l/?ref=app there was a } too much at the end
20th Oct 2019, 6:43 AM
Anton Böhler
Anton Böhler - avatar
+ 1
Thanks Anton :D
20th Oct 2019, 6:50 AM
RezaKoplak406
RezaKoplak406 - avatar
+ 1
RezaKoplak406 Anton Böhler helped you but he gave his time to write your code in Playground and identified error. But it's your responsibility to write your own code in Playground and ask problem if your are getting any. Second thing if you write the code that code will save in your profile not in others. So in future if you again want to see that code then you can see easily.
20th Oct 2019, 7:57 AM
A͢J
A͢J - avatar
+ 1
AJ || ANANT || AC || ANANY || AY It's not that big a deal 😅😂
20th Oct 2019, 8:09 AM
Anton Böhler
Anton Böhler - avatar
+ 1
Anton Böhler 😂😂 Yes but we also doing something and also doesn't have time for this types of things means write their code and find their errors and tell them. Do you think that it's our responsibility. We are here to solve problems not for write their's code and do all things.
20th Oct 2019, 8:50 AM
A͢J
A͢J - avatar
0
AJ || ANANT || AC || ANANY || AY it was like a minute 😂😂 but yeah i get your point 😄
20th Oct 2019, 8:59 AM
Anton Böhler
Anton Böhler - avatar