function y=int_sum(x)
n=input('Type an integer and hit return: ')
if ((n-abs(round(n)))~=0)
    error('Input is not a positive integer')
else s = sum(1 : n)
end