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>.
Write a program in C (not in C++) that calculates the sum of the first "n" natural numbers. The user will enter the "n",
-
- Posts: 43759
- Joined: Sat Aug 07, 2021 7:38 am