I'm trying to do this exercise in C #, but every time I try to compile it points out the error:
The name i does not exist in the current context
Does anyone know how to solve this?
int N, a, b;
N = int.Parse(Console.ReadLine());
a = int.Parse(Console.ReadLine());
b = int.Parse(Console.ReadLine());
for(int i = a; i <= b; i++);
{
if(i % N == 0)
{
Console.WriteLine(i);
}
}