+ 1
String.Length and count() doesn’t support by SoloLearn compiler
string jn = Console.ReadLine(); string[] a=jn.Split(' '); string re=""; foreach(string c in a) { re += c; } int co = re.Length; int li = a.Count(); if(co%li==0) { int i = co/li; console.writeline(i); } else { int j = co/li + 1; console.writeline=(j); } What should I do?
10 Réponses
+ 1
It works fine..
You have other syntax errors... Case mismatching.. Like
Console.WriteLine()
Ex:
In console.writeline=(j);
C not c, W not w, L not l, remove '=' in this....
Same for first Console statement. Remaining fine...
Edit:
I checked also....
+ 1
~ swim ~
I checked my code with Visual Studio
it worked correctly
But in SoloLearn it doest work
+ 1
coffeeunderrun
How did you correct it?I mean what was changed,I see no diffrence between your code and mine
+ 1
coffeeunderrun
I didnt see that,Thank you
+ 1
Jayakrishna🇮🇳
Thank You
+ 1
coffeeunderrun thank you for that mention.
Mahdi Mohammadi
you're Wel come..