Calculating Sum of N Natural Numbers

# Introduction In this lab, we will write a program to find the sum of the first N natural numbers, where N is an integer input by the user, by running a loop from 1 to N and calculating the sum of all numbers within that range.

|60 : 00

Click the virtual machine below to start practicing