fork download
  1. using static System.Console;
  2. using System.Numerics;
  3.  
  4. public class Program {
  5. public static void Main() {
  6. BigInteger num1 = 290287121823;
  7. BigInteger num2 = 538783;
  8. BigInteger resultado = BigInteger.Pow(num1, 2) + num2;
  9. WriteLine(resultado);
  10. WriteLine(resultado.ToString(".#"));
  11. WriteLine(resultado.ToString("N0"));
  12. WriteLine(resultado.ToString("F0"));
  13. }
  14. }
  15.  
  16. //https://pt.stackoverflow.com/q/138226/101
Success #stdin #stdout 0.03s 17248KB
stdin
Standard input is empty
stdout
84266613096281243382112
84266613096281243382112
84,266,613,096,281,243,382,112
84266613096281243382112