Develop a program which:
a) prints all even numbers from 1 to 100 and then calculates their sum;
b) prints all odd numbers from 1 to 100 and then calculates their sum.
Return to Programming and Algorithms
Users browsing this forum: No registered users and 0 guests