Print-the-sum-from-1-to-N

A collection of 1 post

Print the sum from 1 to N

Problem Write a program that outputs the sum from 1 to N when a natural number N is input. input A natural number N less than or equal to 20 is entered in the first line. output Prints the sum from 1 to N on the first line. Solution using