+ 2
What is the cause of the errors in this code?
Why are there so many errors in my code https://code.sololearn.com/cFTEDNml14H4/?ref=app
4 odpowiedzi
+ 2
Because you are trying to call a non-static field from a static method. Make your fields static
+ 2
your program have soo many errors i noticed one.
Their is one mistake in line 40 where you comparing result
You put Curly bracket wrongly.
if (result == result2)
}
Console.WriteLine("amicable");
}
First brac should be open brac you put closing
one bracket is missing here
public static void getamicable(int input)
{
}
+ 1
Thanks guys but i'm still getting errors
+ 1
I don't know C#. So I can't fix the full errors. But I can something. You are mostly mistake on curly brackets. See comments of code.
https://code.sololearn.com/cXOF28Y128OY/?ref=app