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 ...
vvery nice explaination sir ji 😀😀
Well done sir 👌
Thank you 🙏 for helping
Thanks
good bro kerp in work
Thankyouuuuu
Bhaiyaji input userbse lo
Sir while loop ky through nikal sakta hy?
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 ?
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.