Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace AddElementsToArray
- {
- class AddElementsToArr
- {
- static void Main()
- {
- //we have added Strings to this Array - result will be string + one
- string[] add = Console.ReadLine().Split(' ').ToArray();
- for (int i = 0; i < add.Length; i++)
- {
- add[i] += 1;
- }
- Console.WriteLine(string.Join(" ",add));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment