[Solved] How can I check if a number is a multiple of 50 in C# [duplicate]


Use the modulus operator (%) operator:

for (int i = 0; i <= 200; i++)
{
    if (i % 50 == 0)
        Console.WriteLine(i);
}

2

solved How can I check if a number is a multiple of 50 in C# [duplicate]