Тёмный

C++ Program to find the Factorial of a Number using For Loop 

Example Program
Подписаться 36 тыс.
Просмотров 115 тыс.
50% 1

Опубликовано:

 

27 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 57   
@pichonPoP
@pichonPoP Год назад
This platform shows me this video today, and last week I was struggling to do this. Finally, could do, but I'm glad to see another solution tiny different from mine.
@ExampleProgram
@ExampleProgram Год назад
glad my video helped you :)
@markdiaz4129
@markdiaz4129 4 года назад
Awesome tutorial. This was one of the problems my professor asked and you explained it perfectly. Thanks a lot
@ExampleProgram
@ExampleProgram 4 года назад
You are welcome!
@solidsnack9950
@solidsnack9950 2 года назад
Thanks for improving my problem.
@ilhan537
@ilhan537 Год назад
Thanks You have explained Correctly.
@ExampleProgram
@ExampleProgram Год назад
You are welcome
@anamggss
@anamggss Год назад
Great tutorial, I'm confused about one thing though. In all of the examples I've seen including yours the initial value of (counter = number). And it always ends up being the correct answer. However when I try this, it will instead give the result of the factorial * the original number, so I have to put (counter = number -1) to get the correct answer. Which makes sense since without the -1 it would essentially be multiplying num with itself first. Which is why it's so confusing on how this is working on your and other people's ends
@sukhandeepkaur4552
@sukhandeepkaur4552 Год назад
Amazing video ever 🎉 first time I watch your video sir it’s amazing
@ExampleProgram
@ExampleProgram Год назад
Thank you :)
@khilesh1815
@khilesh1815 2 года назад
Thanks bro your video really helped me to make my first factorial program
@ExampleProgram
@ExampleProgram 2 года назад
Glad I could help
@aueputin1385
@aueputin1385 Год назад
incredible explanation
@ExampleProgram
@ExampleProgram Год назад
Glad you think so!
@angelhabiby8894
@angelhabiby8894 6 месяцев назад
more perfect an easier than the rest of the tutorials
@ExampleProgram
@ExampleProgram 6 месяцев назад
Thank you
@Shalini45006
@Shalini45006 Месяц назад
What input should I use for zero?
@soumyasingh6142
@soumyasingh6142 2 года назад
Thank you sir, it helped!
@ExampleProgram
@ExampleProgram 2 года назад
You're welcome!
@yentarachangethelife3897
@yentarachangethelife3897 3 года назад
My dear Learning Lad❤❤❤
@solidsnack9950
@solidsnack9950 2 года назад
What can I do for larger numbers? I used long long but it didn't work.
@Ld06
@Ld06 2 года назад
Thank you 💞💞
@ExampleProgram
@ExampleProgram 2 года назад
Most welcome
@RayyanKhan-nv5il
@RayyanKhan-nv5il 4 месяца назад
Superb
@ExampleProgram
@ExampleProgram 3 месяца назад
Thanks 🤗
@niveshgaming2528
@niveshgaming2528 10 месяцев назад
which app do you use to run the code
@ExampleProgram
@ExampleProgram 10 месяцев назад
Vs code
@thecriminals6949
@thecriminals6949 Год назад
thanks sir
@ExampleProgram
@ExampleProgram Год назад
most welcome :)
@M_Hamxa
@M_Hamxa 7 месяцев назад
what his compiler name ??
@ExampleProgram
@ExampleProgram 7 месяцев назад
gcc
@craftsworld3237
@craftsworld3237 2 года назад
Where do you get this vs code theme?
@ExampleProgram
@ExampleProgram 2 года назад
available by default
@amritprajapat4612
@amritprajapat4612 2 года назад
Vs code
@waridkhan971
@waridkhan971 3 года назад
hi sir. plz make video on program description with shamil's memory table.
@Oki.hou0929
@Oki.hou0929 2 года назад
What about factorials in permutations?
@eriksaucedo4382
@eriksaucedo4382 3 года назад
i cant get it to work with large numbers like 20 how do i do that please help
@dawitejigu
@dawitejigu 3 года назад
why factorial = 1 in declaraton please
@ExampleProgram
@ExampleProgram 3 года назад
Sorry for late reply. For numbers 0 and 1 the factorial value is 1 Initialising factorial with 1 will work nicely with the logic used in this program.
@dukeofmilan2814
@dukeofmilan2814 3 года назад
Where is output???
@vaibhavpratap1041
@vaibhavpratap1041 3 года назад
Where are you from?
@ExampleProgram
@ExampleProgram 3 года назад
Karnataka
@callme_SRK
@callme_SRK 2 года назад
Why fact=1 what if we give 2 3 etc...
@salarramejo-tg3hl
@salarramejo-tg3hl Год назад
Hello sir
@ExampleProgram
@ExampleProgram Год назад
Hello
@enesytm8867
@enesytm8867 4 года назад
bruh it ain't work
@hypermeero4782
@hypermeero4782 4 года назад
for(int counter = number ; counter > 0 ; --counter) his for loop was wrong
@ПользовательБезфамилии-к5ю
I like his accent
@Zomatsu143
@Zomatsu143 11 месяцев назад
This isn't a while loop thou
@rollno14abhisheksharma52
@rollno14abhisheksharma52 2 года назад
But it find fac of 45 how it will display
@gulbadanofficial3135
@gulbadanofficial3135 3 года назад
I got nothing
@ExampleProgram
@ExampleProgram 3 года назад
Check your code
@MillieLilth
@MillieLilth 4 года назад
I cant see nothing
@kingteshome5034
@kingteshome5034 3 года назад
What is the name of the software or apk
@amritprajapat4612
@amritprajapat4612 2 года назад
Vs code
@AstralLaVista
@AstralLaVista 23 дня назад
I am sick of people using imaginary numbers in these examples, im a noob use actual number not m
@blabruh9059
@blabruh9059 2 года назад
bruh it isn't working. lol
Далее
На самом деле, все не просто 😂
00:45
Naming Things in Code
7:25
Просмотров 2,2 млн
C Program To Find Factorial of a Number using For Loop
2:23
why do void* pointers even exist?
8:17
Просмотров 379 тыс.
Python Programs - Factorial Program Using for loop
10:30
Premature Optimization
12:39
Просмотров 825 тыс.
Bresenham's Line Algorithm - Demystified Step by Step
16:10
Build this JS calculator in 15 minutes! 🖩
15:20
Просмотров 626 тыс.