Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Big numbers
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using System.Numerics; namespace Rextester { public class Program { public static void Main(string[] args) { // Given three numbers A, B and M. Calculate (A*B)%M. All numbers are in a range of 1 to 10^15 //Your code goes here Console.WriteLine("Hello, world!"); BigInteger A = BigInteger.Pow(9, 14); BigInteger B = BigInteger.Pow(8, 9); BigInteger M = BigInteger.Pow(5, 3); Console.WriteLine("Number A is " + A); Console.WriteLine("Number B is " + B); Console.WriteLine("Number M is " + M); Console.WriteLine( "(A * B ) % M = " + (A * B ) % M); } } }
run
|
edit
|
history
|
help
0
FREE V-BUCKS GENERATOR NO HUMAN VERIFICATION 2022 [zT4]
2
Project Euler Problem 4
circl
generics one more doubt-stack overflow exception
Ki
Homework1
Compress in C#
12
check ca a place