Advertisement
Guest User

Untitled

a guest
Dec 7th, 2019
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. using System;
  2. public class Kata
  3. {
  4. public static int SumMix(object[] x)
  5. {
  6. int result = 1;
  7. foreach (object i in x)
  8. {
  9. if (x[i].GetType() == typeof(String))
  10. {
  11. result += Convert.ToInt32(x[i]);
  12. }
  13. result += x[i];
  14. }
  15. return result;
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement