title: C# writing a program that input of 2 numbers (a and b),gives an output of the sum of squares in between
body: <p>I`m quite new to the whole programming world.
  And i started studying C#</p>
  
  <p>i got the following exersice to do:</p>
  
  <blockquote>
    <p>Write a program that upon the input of 2 numbers (a and b), u receive
    an output of the sum of squares in between.</p>
    
    <p>I.e. - The program receives a and b where <code>b &gt; a</code> and calculates <code>a^2
    + (a+1)^2 + (a+2)^2 + ... + (b-1)^2 + b^2.</code></p>
    
    <p>E.g. - If <code>a = 3</code> and <code>b = 6</code>, the output would be 86, since <code>3^2 +
    4^2 + 5^2 + 6^2 = 9 + 16 + 25 + 36 = 86</code></p>
  </blockquote>
  
  <p>But i don't have any idea where do i even begin.
  I`m guessing i need some sort of loop within a loop maybe?</p>