How to calculate factorial in php | Factorial program in php

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024
  • More details and Code: www.learnwebtec...
    Write a program to calculate and print the factorial of a number using a for loop.
    The factorial of a number is the product of all integers up to and including that number, so the factorial of 5 is 5*4*3*2*1= 120
    I am really glad to have such an awesome community on my channel. It motivates me to continue creating and uploading content! So thank you!
    I have worked hard, and done my best to help you understand what I teach.
    If you found this video valuable, give it a like.
    If you know someone who needs to see it, share it.
    If you have questions ask below in comment section.
    Add it to a playlist if you want to watch it later.
    PHP Installation : • How to install Apache,...
    PHP Datatype : • php tutorial in hindi ...
    PHP Variable : • Variable in php in hin...
    PHP Control Statement : • if else statement in p...
    Switch Statement: • switch statement in ph...
    PHP Loop: • Loop in php in hindi #...
    PHP Function: • function in php in hin...
    PHP Array: • Array in php in hindi ...
    Exercise 01 : Calculator Program: • Calculator in PHP | Su...
    Exercise 02 : Swap two value without using 3rd variable: • Exchange two value in ...
    Exercise 03 : Reverse Number: • Reverse number in PHP ...
    Exercise 04 : Print Prime Number between 1 to 100: • Write a program to pri...
    Exercise 05 : Check Print Prime Number: • How to check prime num...
    Linear Search : • Linear Search Algorith...
    Binary Search : • Binary Search Algorith...
    Bubble Sort : • Bubble sort algorithm ...

Комментарии • 10

  • @ranurai6452
    @ranurai6452 3 года назад +1

    vvery nice explaination sir ji 😀😀

  • @saniazehra2762
    @saniazehra2762 3 года назад +1

    Well done sir 👌

  • @daryangohdar5685
    @daryangohdar5685 4 года назад +1

    Thank you 🙏 for helping

  • @pramodmaru2402
    @pramodmaru2402 4 года назад +1

    good bro kerp in work

  • @kharismalisahada314
    @kharismalisahada314 Год назад +1

    Thankyouuuuu

  • @Tbm4545
    @Tbm4545 3 месяца назад

    Bhaiyaji input userbse lo

  • @mbilal6442
    @mbilal6442 2 года назад +1

    Sir while loop ky through nikal sakta hy?

  • @Vickysagittarius
    @Vickysagittarius 4 года назад

    sirji, condition main maine $i >= 0 likha tha par ye result pe 0 show kar rahi thi ? aur jab main $i > 0 likh raha tha to ye 120 factorial no of 5 bata rahi thi for loop?
    aisa kyun ? $i >= 0 main kya problem thi us main bhi to value 0 se greater hi thi ?

    • @pradipmehta10
      @pradipmehta10  4 года назад +2

      kyoki Apne >=0 tak loop chalaye to last loop 0 ka run hua or total number me 0 se multiple hua.
      Or kisi bhi number me 0 se multiple hone se whole value 0 ho jati hai. Isliye apke result 0 Aya.