Dr. A.P.J. Abdul Kalam Technical University (AKTU), Lucknow
14. Write a program to print the sum of even and odd numbers from 1 to N numbers.
Sample Input and Output
Input number: 10
Sum of all odd numbers up to 10 is 25.
Sum of all even numbers up to 10 is 30.