Page 1 of 1

Write a program in C (not in C++) that calculates the sum of the first "n" natural numbers. The user will enter the "n",

Posted: Fri Jun 10, 2022 11:56 am
by correctanswer
Write a program in C (not in C++) that calculates the sum
of the first "n" natural numbers. The user will enter the "n",
and he should be able to choose if he wants to sum the first even
"n", the odd "n", or all. You are only allowed to use
<stdio.h>.
Please don't copy the answer, they are wrong.