%sumOneToN(number) -> number
%Author: James Atlas CISC106 8:00AM
%Description:
%  Sums the numbers from one to n
%Examples:
%  sumOneToN(-5) -> 0
%  sumOneToN(1) -> 1
%  sumOneToN(3) -> 6
function out=sumOneToN(n)
  if (n < 1)
      out = 0;
  else
      out = n + sumOneToN(n - 1);
  end