Complete the Code to Solve Mathematical Problems

Finish the code to calculate the sum of numbers from 1 to N and the sum of odd numbers from 0 to n

Complete the code to let it sum all numbers from 1 to N. Complete the code to sum all odd numbers from 0 to n