Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string a = Console.ReadLine();
- string b = Console.ReadLine();
- int s = 0;
- int o = 0;
- for (int i = 0; i < a.Length; i++)
- {
- s += (int)a[i];
- }
- for (int i = 0; i < b.Length; i++)
- {
- o += (int)b[i];
- }
- if (s > o) Console.WriteLine(a);
- else
- if (s == o) Console.WriteLine("raven sbor na aski kodowe");
- else Console.WriteLine(b);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement