如何在c#中找到数字的模数

yah*_*ooo 3 c#

如何在c#.net中找到数字的模数?

kgi*_*kis 11

使用模数运算符%:

int x = 4545;
int mod = x % 16;
Run Code Online (Sandbox Code Playgroud)