2
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
Someone knows how to fix 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);
}
}
Perfect, thanks LINQ for!
– Adriano Sanches
@Adrianosanches I don’t know if you already know how the site works, but whenever you ask a question you can mark an answer as correct using the V on the left side of the response
– Jéf Bueno