Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- public class Kata
- {
- public static int SumMix(object[] x)
- {
- int result = 1;
- foreach (object i in x)
- {
- if (x[i].GetType() == typeof(String))
- {
- result += Convert.ToInt32(x[i]);
- }
- result += x[i];
- }
- return result;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement