Quote:
I am supposed to do with that function only that's where the main challenge.
It's the same thing, only with params you don't have to name each argument individually, and you can pass as many or as few arguments as you need.
But ... if your homework requires you to use that exact method signature, then start by writing a method which takes an integer, and returns a bool:
private static bool IsStable(int value)
{
...
}
Then call that five times in your code:
int stableCnt = 0;
int unstableCnt = 0;
if (IsStable(input1)) stableCnt++;
else unstableCnt++;
if (IsStable(input2)) stableCnt++;
else unstableCnt++;
...