Advertisement
NedyalkoKikov

AddElemtsToArr___int

May 28th, 2016
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace AddElemtsToArr___int
  8. {
  9. class Program
  10. {
  11. static void Main()
  12. {
  13. int[] nums = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
  14. for (int i = 0; i < nums.Length; i++)
  15. {
  16. nums[i] += 1;
  17. }
  18. Console.WriteLine(string.Join(",",nums));
  19. }
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement