title: How to add a value to a specific row in a 2d array
body: <p>I am trying to get a number from user input to be the row number of the 2d array already existed and another number to be the value that needs to be added to the elements of that row. I have no idea how to do it. Please help me and give me some idea where to start.</p>
  
  <p>So for example if i already have my 2d array and the content is:</p>
  
  <p>2 3 4 5 1</p>
  
  <p>2 6 2 5 6</p>
  
  <p>4 2 6 2 1</p>
  
  <p>I know how to get the numbers from the user input and locate that row but I just don't know how to add the second number to the elements of that row.</p>
  
  <p>For example:</p>
  
  <ul>
  <li>if user inputs 0 as the row number.  </li>
  <li>We got 2 3 4 5 1 located.</li>
  <li>then user inputs 2 as the value of addition. </li>
  </ul>
  
  <p>I need to do 2+2 3+2 4+2 5+2 1+2 and save the row zero back to the 2d array. How can I do it?</p>