MATLAB code to calculate factorial of a number (without using built-in function)

Поділитися
Вставка
  • Опубліковано 13 січ 2025

КОМЕНТАРІ • 10

  • @leonrodriguez1236
    @leonrodriguez1236 3 роки тому +2

    Great explanation. It helped me a lot for my homework

    • @KnowledgeAmplifier1
      @KnowledgeAmplifier1  3 роки тому

      Leon Rodríguez, glad to see your appreciation for our Video. Do support us by Subscribing to our UA-cam Channel
      Happy Learning :-)

  • @xiocian
    @xiocian 2 роки тому

    When I was playing around trying to figure this out I ended up using:
    n = 5;
    for x = 1:(n-1)
    n = n * x
    end
    In that case, you don't have to initialize the third variable. Whatever "n" gets set to, the vector expressed by "x" is all the whole numbers that come before the value for "n".

  • @ratulchoudhury9144
    @ratulchoudhury9144 3 роки тому

    Well explained

  • @hor002
    @hor002 2 роки тому +1

    Thank you

    • @KnowledgeAmplifier1
      @KnowledgeAmplifier1  2 роки тому +1

      You are welcome hor falih! Happy Learning :-)

    • @hor002
      @hor002 2 роки тому +1

      I didn't understand my teacher but you made the lesson easy 💗

  • @prasathsaravanamuthu9552
    @prasathsaravanamuthu9552 3 роки тому

    wow super dude