Created
April 15, 2021 14:01
-
-
Save mesiriak/4b0349c12596ebe0bab9cdca52392b92 to your computer and use it in GitHub Desktop.
Codewars. C#
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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