Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // C#.NET
- #using System.Console;
- #using System.Collections.Generic;
- static void main(string[] args)
- {
- int i;
- string a = null;
- List<string> l = new List<string()>;
- foreach (string s1 in args)
- {
- a += s1;
- a += " ";
- }
- foreach (string s in a.Split('|'))
- {
- foreach (string s2 in s.Split(' '))
- {
- try
- {
- i+= Int32.Parse(s2);
- }catch (Exception e){}
- }
- WriteLine(i);
- i = 0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement