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
Collatz Conjecture, using Pi
StackOverflow Generic
Enemy Spawner
xddd
Using System.Reflection to find Property Name and Value of any Generic class
Konakubo Wall
Use Lock Keyword
Enumeration
SHA Tester 2.0
Lesson1_1_Part2.cs