help please | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

help please

how to complete project in c# level points?

1st Dec 2021, 5:46 PM
nikoloz kherkeladze
nikoloz kherkeladze - avatar
4 Answers
+ 2
static int Points(int levels) { int p=0; for(int i=1; i<=levels; i++) p += i; return p; } Life is about learning; when you stop learning, you die. - Tom Clancy Do not give up. The beginning is always the hardest.
1st Dec 2021, 9:27 PM
SoloProg
SoloProg - avatar
+ 9
Andromeda , can you please be a bit more descriptive? what's your issue ? if you really have a problem, we need some more details from you: ▪︎give a clear and complete description about your task ▪︎if your question is related to an exercise in a tutorial, please mention the tutorial name and the lesson number ▪︎if there are error messages please post them here ▪︎give at least one sample with input data and the expected output ▪︎to be able to find out the issues you have, we need to see your code     => please put your code in playground, save it there and post a link to it here. thanks for your understanding!
1st Dec 2021, 6:44 PM
Lothar
Lothar - avatar
+ 1
Lothar well i cant solve project. project's name is "Level Points" and its 33 lesson in C# curse. in this lesson i need to creat a project where first level of game awards player 1 point. for each subsequent level passed, the points awarded incerment by 1 (2 points for 2nd level, 3 points for 3rd level and so on). the program must take the number of passed levels as input. And i cant complete this function to take number as an argument, and recursievly calculate and return the total number of points given for all passed levels. for exsample: sample input 3 sample output 6 Level 1: 1 point Level 2 : 2 points Level 3 : 3 points total: 1 + 2 + 3 = 6 points.
1st Dec 2021, 6:58 PM
nikoloz kherkeladze
nikoloz kherkeladze - avatar
+ 1
SoloProg Thank you so much for your help and support, Always have a willing hand to help someone, you might be the only one that does. Roy T. Bennett
1st Dec 2021, 10:02 PM
nikoloz kherkeladze
nikoloz kherkeladze - avatar