hi
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment
It is the same account you read, post and publish with — and you will come straight back to this page.
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment
It is the same account you read, post and publish with — and you will come straight back to this page.
Manish ParteyPosted May 21, 2008, 2:09 AM
protected void Page_Load(object sender, EventArgs e) { bool a = CheckNo(7); } protected bool CheckNo(int number) { bool Flag = true; for (int i = number - 1; i >= 2; i--) { if (number % i == 0) { Flag = false; break; } } return Flag; }