How to find number module in C #

how to find number module in c # .net?

+3
source share
3 answers

With the module operator%:

int x = 4545;
int mod = x % 16;
+11
source

Via the '%' operator.

eg. int i = 10 % 3;(result: i equals 1)

+1
source

Source: https://habr.com/ru/post/1730834/


All Articles