Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Linq;
- class HelloCSharp
- {
- static void Main(string[] args)
- {
- long[] firstDigits = Console.ReadLine().Split().Select(long.Parse).ToArray();
- long[] secondDigits = Console.ReadLine().Split().Select(long.Parse).ToArray();
- long maxArray = Math.Max(firstDigits.Length, secondDigits.Length);
- for (long i = 0; i < maxArray; i++)
- {
- long sum = firstDigits[i % firstDigits.Length] + secondDigits[i % secondDigits.Length]; //
- Console.Write("{0} ", sum);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement