A
A
A qddd2019-10-14 09:22:51
C++ / C#
A qddd, 2019-10-14 09:22:51

What is the error of invalid character SI SHARP?

public string IntReduse(int score)
{
if (score > 1000 && < 1000000) // invalid term "<" in expression
return (score / 1000).ToString("0.00") + "K";
else if (score >= 1000000)
return (score / 1000000).ToString("0.00") + "M";
else
return score.ToString("0");
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Developer, 2019-10-14
@prikplay12

You missed the score

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question