Thank you! the way you explained is a piece of cake for anybody as you said starting of the video. Thanks for your time and effort. Now i understood the recursion concept.
@alokin00733 жыл бұрын
God bless you mate I have a exam in a couple of days and you helped me a lot :)
@RenaissanceCoders9 жыл бұрын
Hi outtoplay, I am unable to reply directly to your comment for some reason, but thank you! And yes you should be able to use MonoDevelop to follow along.
@princetanweer38777 жыл бұрын
if(powerOf ==0) return 1; It'll work.
@makanathegreat32347 жыл бұрын
That's what I was thinking too. It's less complicated just to fix your condition statement.
@Otto-the-Autopilot2 жыл бұрын
It will also make your call stack become one step deeper in the end. So even though it will in this case not make any noticeable difference at all, I'd still already exit when num == 1. Doesn't make the code any less understandable yet is better performance wise.
@jlearner46056 жыл бұрын
You have explained it simple and precise. Thank you.
@solvedplus8582 жыл бұрын
many thanks for your nice tutorial
@dastoto01662 жыл бұрын
oh my god I finally understand recursion!! 🥺
@Darival929 жыл бұрын
hi, great video, i have a question a little off topic, how did you set the dots in every line on VS? it lookes more organized
@Steven_Random_Suffix8 жыл бұрын
It's an option called "View White Space", Go to "Edit" > "Advanced" > "View White Space" While you are there, you might want to consider to enable "Word Wrap" as well, might help in some cases (or be annoying, also possible)
@makanathegreat32347 жыл бұрын
You won't need to return num. All you have to do is fix your conditions: if(powerOf
@mauriromero65 жыл бұрын
Thxs, this helped me a lot
@stephenpino29365 жыл бұрын
Good for basic concepts thanks!
@mohamedarafa75998 жыл бұрын
how the program know that i do program factorial and the name of method is any sords which i write to know what i do only
@alaazarnaji66027 жыл бұрын
that was such a useful tutorial . just have one Question I wanna prompt the user to give me the value using ReadLine but how ! when I give it Converts.toint32(Consol.readLine()); it says it's inaccessible due to its protection.
@RenaissanceCoders7 жыл бұрын
The error "inaccessible due to its protection" basically means that we cannot access the variable that is bring referenced, so you need to change our variable to be public instead of private and that should fix the issue.
@alaazarnaji66027 жыл бұрын
it worked . thank you Renaissance coders ^ ^
@RenaissanceCoders7 жыл бұрын
Hey, you are certainly welcome!! :)
@TheExamian4 жыл бұрын
I'm just starting to learn coding and your video really helped, thank you!! What I don't quite get is, what "bool running = true, while(running {};" does in your main function. If someone has an explanation for me I would be really happy :)
@Otto-the-Autopilot2 жыл бұрын
It forces the application to stay within the Main method by looping forever, preventing it to close itself again right after printing the answer (user has to kill it). It works, but is also stressing the system since the application is infinite looping. Most developers therefore use "Console.ReadLine();" at the end of the Main method instead, to prevent the app from automatically closing itself. Not very important for simple demo purposes like these of course, though I do think you should never waste any resources if it can be easily prevented.
@muxammad2777 Жыл бұрын
I think its like using this Console.ReadKey(); so that the program running until he closes it, that is what im thinking im not sure,
@outtoplay9 жыл бұрын
Terrific work! Quick question... Is it possible to do your C# tutorials on a Mac? I see that mose C# tuts use Visual Studio, But my mac is my main box. Can I do these lessons in MonoDevelop? Thanks.
@beastmasterbg2 жыл бұрын
thank you
@Flowerpot29052 жыл бұрын
This is confusing for me... I'm not understanding where the factorials are being added together? I would expect there to be a += somewhere in the formula. But maths is not my strong suit. I suppose it is because the variable value keeps updating itself, and then running again, like a loop. My brain is struggling with this! 🙂
@ayeletyam25537 жыл бұрын
I study software engineering in 11th grade and we are always taught you cant do write methods inside the main only call them.
@ayeletyam25537 жыл бұрын
they say we should write them above the main
@RenaissanceCoders7 жыл бұрын
Ayelet Yam That is only necessary for lower level compilers like C++ compilers where source files are parsed from the top down.
@PandaTheGFX7 жыл бұрын
My guess is because most people will make a transition to another language that may be influenced by this, so they teach you that way so you get used "just in case"
@hadarnada87016 жыл бұрын
pretty helpful, helped me to undersrtand the basic concept
@TheVeveus5 жыл бұрын
thanks
@HelloQro Жыл бұрын
power of zero wouldn't work tho
@TheAdun6 жыл бұрын
sorry but this video does not explain the concept at all.