Hello all,

Quite new at this programming stuff, and am having a few problems with functions...i have four questions:

I need functions:

1.that accepts an integer and returns the sum of squares of all numbers from 1 to the integer

2.that accepts an integer and prints the Fibonacci sequence of numbers i.e. 1, 1, 3, 5...

3.that accepts an integer and return true, if it is prime, false otherwise.

4.that accepts 2 integers and returns:

0 if they are equal

-1 if the first number is less than second

1 if first number is greater than second

Just the functions would like to do the programs myself.

Thank You,

TheGamE