Need help with finding the null, I cant quite figure it out for this one. Specifically checking to find a null and then putting the output saying that's a null
public int EXP;
public static void Main(string[] args)
{
Console.Write("Check to see if its a prime number!strong text Enter a number! ");
int Vo = Convert.ToInt32(Console.ReadLine());
int Va = Check_Prime(Vo);
if (Va == 0)
{
Console.WriteLine("not a prime number!", Vo);
}
else
{
Console.WriteLine("Is a prime number!", Vo);
}
Console.Read();
}
private static int Check_Prime(int Vo)
{
int L;
for (L = 2; L <= Vo - 1; L++)
{
if (Vo % L == 0)
{
return 0;
}
}
if (L == Vo)
{
return 1;
}
return 0;
}
