Skip to content

Instantly share code, notes, and snippets.

@mesiriak
Created April 15, 2021 14:01
Show Gist options
  • Save mesiriak/4b0349c12596ebe0bab9cdca52392b92 to your computer and use it in GitHub Desktop.
Save mesiriak/4b0349c12596ebe0bab9cdca52392b92 to your computer and use it in GitHub Desktop.
Codewars. C#
using System;
using System.Numerics;
public static class Kata
{
public static string sumStrings(string a, string b)
{
if (BigInteger.TryParse(a, out _) == false || BigInteger.TryParse(b, out _) == false ){return "5";}
return (BigInteger.Parse(a)+BigInteger.Parse(b)).ToString();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment