BigInteger - C#
Формулировка задачи:
добрый день, y не хочет вычислять корректное значение,и все время показывает значение 0,в чем может быть ошибка
public static BigInteger ModPow() { BigInteger value = 10; BigInteger exponent = 100; BigInteger modulus = BigInteger.Pow(5, 30); BigInteger y= BigInteger.ModPow(value, exponent, modulus); return 0; }
Решение задачи: «BigInteger»
textual
Листинг программы
public static BigInteger ModPow() { BigInteger value = 10; BigInteger exponent = 100; BigInteger modulus = BigInteger.Pow(5, 30); BigInteger y= BigInteger.ModPow(value, exponent, modulus); return y; }
ИИ поможет Вам:
- решить любую задачу по программированию
- объяснить код
- расставить комментарии в коде
- и т.д