+ 1

I'm stuck in a project (C# Script)

I need to make a script that gets a number as an input and outputs the result of the sum of all the numbers from 1 to the input number. I should do it with a recursive method. I'm stuck because I do not know how to script it.

16th Apr 2021, 2:48 PM
ShyGuy2017
ShyGuy2017 - avatar
3 Answers
+ 3
Provide your code the next time you ask a question :) https://code.sololearn.com/cX8bn0Z3wse8/?ref=app
16th Apr 2021, 2:53 PM
Soumik
Soumik - avatar
+ 3
You're Welcome ShyGuy2017 ^_^
16th Apr 2021, 2:56 PM
Soumik
Soumik - avatar
+ 1
thank you very much :). I couldn't give it cuz I only have a draft for it on paper.
16th Apr 2021, 2:54 PM
ShyGuy2017
ShyGuy2017 - avatar