This is my first time posting, i'm having some problem with some school work. I was wondering if anyone could give me some pointers. greatly appreciated. thank you in advance.
Determine the sum of integers: read in a positive integer n, determien the sum of the first n odd integers, the sum of the first n even integers, and then print out these sums.
eg: input 5.
the sum of the integers 1,3,5,7 and 9, and determine the sum of the first five even integers, the sum of the integers 2,4,6,8 and 10.
What methods should i use to solve this problem?