C Program To Find Factorial of a Number using Recursion

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 ก.ย. 2024
  • technotip.com/...
    Lets write a C program to find Factorial of a user input number using Recursion.
    Factorial Definition: Factorial of a positive integer n, denoted by n!, is the product of all positive integers less than or equal to n.
    Important Note: By convention, Factorial of 0 is 1. i.e., 0! = 1.
    Example: 5! = 5 x 4 x 3 x 2 x 1 which is equal to 120. i.e., 5! = 120.
    Formula To Calculate Factorial of any positive integer number
    We can calculate factorial of any number using this relationship:
    num! = num * (num - 1)!
    where num is a positive integer number.
    C Programming Interview / Viva Q&A List
    technotip.com/...
    C Programming: Beginner To Advance To Expert
    technotip.com/...

ความคิดเห็น • 23

  • @scoupsoficecream5296
    @scoupsoficecream5296 3 ปีที่แล้ว +8

    thank you, your way of teaching is so easy to understand.

    • @technotipDOTorg
      @technotipDOTorg  3 ปีที่แล้ว +2

      Thank you for the feedback bro. Will do my best. Kindly stay subscribed to our TH-cam channel and blog. And please share our videos with your friends. 🙏

  • @nouramsaeed
    @nouramsaeed 7 หลายเดือนก่อน +2

    I realy like your method thank you

  • @oscararmandocisnerosruvalc8503
    @oscararmandocisnerosruvalc8503 2 ปีที่แล้ว +1

    Bro your video about recursion is just amazing !!!

  • @known__8079
    @known__8079 9 หลายเดือนก่อน +1

    Sir it was so easy when you explained tqsm sir

  • @shashwatdhingra3580
    @shashwatdhingra3580 2 ปีที่แล้ว +2

    Absolutely great explanation

  • @snehaa1959
    @snehaa1959 2 ปีที่แล้ว +1

    Tq sir.I clarified my douts.useful video sir

  • @nam3go3sh3r3
    @nam3go3sh3r3 3 ปีที่แล้ว +1

    Fantastic explanation thank you

  • @rohitraushan1273
    @rohitraushan1273 4 ปีที่แล้ว +3

    I had made this problem. But i had doubt y not reutrn 0. Thanks to u now i know.😀

    • @technotipDOTorg
      @technotipDOTorg  4 ปีที่แล้ว

      Glad to know that it helped :)
      Stay subscribed to our TH-cam Channel and blog Technotip.com
      Also please let your friends know about our site Technotip.com We would love to serve as many people as possible.
      Thank you ..

  • @vedantikhar5336
    @vedantikhar5336 ปีที่แล้ว +2

    Void main bhi le sakte the kya?

    • @technotipDOTorg
      @technotipDOTorg  ปีที่แล้ว +1

      Yes you can. But it's always good practice to have int main() and then return 0 at the end. Returning 0 indicates(to the operating system) that the code inside main executed with out any error.

  • @codeeducation773
    @codeeducation773 6 หลายเดือนก่อน +1

    thank you sir my problem solve

  • @down2uranus
    @down2uranus 2 ปีที่แล้ว +1

    This was really helpful, I did spent a lot of time trying to understand the logic before watching this video, thanks techotip

  • @harshanaththanayaka1637
    @harshanaththanayaka1637 3 ปีที่แล้ว +1

    thank you

  • @ariefsaferman
    @ariefsaferman 3 ปีที่แล้ว +1

    Cool.

  • @deepahaasan6131
    @deepahaasan6131 ปีที่แล้ว +1

    Waste didn't get the output
    I just copy the same coding and tried in my laptop i didn't get the right output

    • @deepahaasan6131
      @deepahaasan6131 ปีที่แล้ว

      In output if i enter any number
      For eg : i entered 7
      So output coming as return 0 is 1

  • @NazrulIslam-N07n
    @NazrulIslam-N07n 2 ปีที่แล้ว

    thanks

  • @bpccreative4966
    @bpccreative4966 11 หลายเดือนก่อน

    it would be better if you could explain it in hindi too.

  • @divyeshboddu0611
    @divyeshboddu0611 2 ปีที่แล้ว +2

    not understood a single word

  • @gpyao4469
    @gpyao4469 2 ปีที่แล้ว

    can you speak in english?