N Natural numbers its sum program
Explanation:
Step 1: First we need to take the nth term value from the user. For that, we are taking the Scanner class object to take input.
Step 2: With that input, we need to store that input number in some variable.
Step 3: now we need to iterate ...
smartcookie.hashnode.dev2 min read