Answers for "c# modulo"

C#
0

c# modulo

int x = 10;
int y = 2;
if(x % y == 0){
    Console.WriteLine("X is divisible by y");
}
else
{
    Console.WriteLine("x is not divisible by y, " + x%y + " is left");
}
Posted by: Guest on December-26-2021

C# Answers by Framework

Browse Popular Code Answers by Language