+ 2
Write a code to determine sum of n natural numbera
input 5 output 1+2+3+4+5=15
2 Respostas
+ 8
Very simple code:
https://code.sololearn.com/cCjlQYq7bhRT/?ref=app
+ 3
Like n consecutive natural numbers?
Or can be non-consecutive too?
input 5 output 1+2+3+4+5=15