No video

C Program To Find Factorial of a Number using For Loop

  Рет қаралды 188,558

Technotip

Technotip

Күн бұрын

technotip.com/7...
Write a C program to find Factorial of a user input number, using for loop.
Example: Factorial of 5 is 120 (1 x 2 x 3 x 4 x 5 = 120).
5! = 120 (It is read as 5 factorial is 120)
C Programming Interview / Viva Q&A List
technotip.com/6...
C Programming: Beginner To Advance To Expert
technotip.com/6...

Пікірлер: 64
@p0p4
@p0p4 3 жыл бұрын
you could enter ”count = 2” instead of ”count = 1” into the for() statement to skip the unnecessary first loop. Just something I noticed. The first loop simply just multiplies 1 with 1 after all.
@govindprajapat8171
@govindprajapat8171 6 ай бұрын
But if you insert 1 in it then ? Means factorial of one❤
@kulvinderkaur9021
@kulvinderkaur9021 2 жыл бұрын
Very nice teaching Thanks for teaching us
@eshakhan2021
@eshakhan2021 2 жыл бұрын
mashallaha bht acha smj aaa jta ha ap ka leacture☺☺☺☺☺☺
@ZeyExC
@ZeyExC 3 жыл бұрын
Sir, Thank you for your tutorial💙
@chaitanya4525
@chaitanya4525 2 жыл бұрын
Solved after 1 hour .thanks
@visheshchauhan633
@visheshchauhan633 2 жыл бұрын
If i write 4 then how will i get the output like 4*3*2*1=24
@mritunjaysingh3649
@mritunjaysingh3649 2 жыл бұрын
4*3*2=4*6=24
@STENOLOVER143
@STENOLOVER143 3 жыл бұрын
Wow helpful video sir thanks
@abhay-zw3yw
@abhay-zw3yw Жыл бұрын
it doesnt work for large number , bcuz of size of integer . large number cant be store be integer data type
@sobibhat6073
@sobibhat6073 2 жыл бұрын
Thank you sir this is very usefull for me
@pexiepexie868
@pexiepexie868 2 жыл бұрын
I did 1k th like 🥳
@technotipDOTorg
@technotipDOTorg 2 жыл бұрын
Thank you for the support. 🙏
@nitisharma550
@nitisharma550 10 ай бұрын
Thank you ❤
@user-wb9ve9cz3s
@user-wb9ve9cz3s 3 ай бұрын
1 write algorithm 2 Write (n=4 C program size 10 items. Use neutral language. Please help me with the video
@princesszoni
@princesszoni 11 ай бұрын
How do I get it to print out all of the steps until it gets to the answer, for example 1: 1, 2: 2, 3: 6, the factorial of 4 is 24
@aswang444
@aswang444 4 ай бұрын
#include int main() { int num, fact = 1; printf("Enter a number: "); scanf_s("%d", &num); for (int count = 1; count
@cmptr693
@cmptr693 Жыл бұрын
It was helpful
@eyalsolman3349
@eyalsolman3349 2 жыл бұрын
Ty you saved me👍
@manabendrathakuria8830
@manabendrathakuria8830 Жыл бұрын
If we find the factorial of 0, then your program displays the factorial 0 but the answer is 1
@SamuelBelinga
@SamuelBelinga 10 ай бұрын
Factorial of 0 is 1 And placing count from 0 It will drop all other factorials to zero too I think, or I'm not getting it
@deepshikhameghwal692
@deepshikhameghwal692 2 жыл бұрын
When I type a no in terminal ..nothing happens.
@sudipsarkar1512
@sudipsarkar1512 2 жыл бұрын
What if i didn't mention, fact= 1... What would it take as default value... ??
@tapeshbhardwaj2056
@tapeshbhardwaj2056 Жыл бұрын
Takes a garbage value, means any random number :)
@user-wn1dc1fo5i
@user-wn1dc1fo5i 4 ай бұрын
super
@mrjnutube
@mrjnutube 2 жыл бұрын
What happens when you enter 0?
@maliktasaduq5609
@maliktasaduq5609 8 ай бұрын
My code isn’t working
@MigzMercado
@MigzMercado 2 жыл бұрын
Why do 13 factorial and above become negative using this program?
@Mrspirit12
@Mrspirit12 2 жыл бұрын
because here we are using int and we cannot store huge amount of data in int data type
@FREEFIRE-kp2kq
@FREEFIRE-kp2kq 7 ай бұрын
❤❤❤
@NA7-DEVIL
@NA7-DEVIL Жыл бұрын
Sir op promote us also please in community's post
@tafikurrahman128
@tafikurrahman128 Жыл бұрын
Tumar program 2 howa nai karon 9,8 number bilakor factorial nulai.only 5,4,3,2 karone he program 2 right
@aqeelsaifi5273
@aqeelsaifi5273 3 жыл бұрын
What's the name of c programming application?
@privateuser047
@privateuser047 3 жыл бұрын
i think it's --> CodeBlocks
@venumylavarapu1498
@venumylavarapu1498 2 жыл бұрын
Dev c++ brother
@jotaroisdarius1918
@jotaroisdarius1918 2 жыл бұрын
codeblocks
@shalinichoudhary3259
@shalinichoudhary3259 2 жыл бұрын
Can any one explian why we use ???
@deepshikhameghwal692
@deepshikhameghwal692 2 жыл бұрын
For a new line
@x_kunalz4252
@x_kunalz4252 4 ай бұрын
Another line usese the change of paragraph
@ilham2303
@ilham2303 2 жыл бұрын
Is this program work for c++
@d_beats_01
@d_beats_01 Жыл бұрын
Declaration terminated incorrectly 😄
@ffm_Nitish
@ffm_Nitish 3 ай бұрын
🎉
@AmanChahal-rz6rs
@AmanChahal-rz6rs Ай бұрын
Count- - hona chie
@sauravbikramkadariya1936
@sauravbikramkadariya1936 3 жыл бұрын
It gives wrong answer from factorial of 8
@BlueCodesDev
@BlueCodesDev 2 жыл бұрын
Bcoz it is a long numbers
@sania4310
@sania4310 2 жыл бұрын
@@BlueCodesDev do we hv to take long instead of int ?
@BlueCodesDev
@BlueCodesDev 2 жыл бұрын
@@sania4310 yeah we should use "long int"
@sania4310
@sania4310 2 жыл бұрын
@@BlueCodesDev thx
@BlueCodesDev
@BlueCodesDev 2 жыл бұрын
@@sania4310 did it work tho, I am not working on C much
@hasapro4954
@hasapro4954 2 жыл бұрын
ok
@adilpanda624
@adilpanda624 2 жыл бұрын
Urdu ma batao
@zackcarl7861
@zackcarl7861 3 жыл бұрын
Sir why assign 1 to fact
@p0p4
@p0p4 3 жыл бұрын
Because 0 multiplied by anything is 0
@narlavarun8220
@narlavarun8220 Жыл бұрын
Because if we don't assing an initial value it will take some garbage value as initial value
@deepchangani2004
@deepchangani2004 Жыл бұрын
If we do i=n ; and i-- its possible?
@dhruvsapaliga6340
@dhruvsapaliga6340 10 ай бұрын
Cause anything multiplied with 0 will be 0
@sagorbarua5775
@sagorbarua5775 10 ай бұрын
Anything multiple 0 is 0 so if u didn't put 1 then the code will not start it will give result 0 no matter what value u put
The Fastest Way to Loop in Python - An Unfortunate Truth
8:06
mCoding
Рет қаралды 1,4 МЛН
а ты любишь париться?
00:41
KATYA KLON LIFE
Рет қаралды 3,7 МЛН
English or Spanish 🤣
00:16
GL Show
Рет қаралды 8 МЛН
ISSEI & yellow girl 💛
00:33
ISSEI / いっせい
Рет қаралды 25 МЛН
C++ Program to find the Factorial of a Number using For Loop
8:33
Example Program
Рет қаралды 110 М.
C Program To Find Factorial of a Number using Recursion
10:24
Technotip
Рет қаралды 42 М.
C Program to Check a Number is Prime or Not | Learn Coding
10:06
Learn Coding
Рет қаралды 492 М.
31 nooby C++ habits you need to ditch
16:18
mCoding
Рет қаралды 770 М.
If __name__ == "__main__" for Python Developers
8:47
Python Simplified
Рет қаралды 398 М.
String In Char Array VS. Pointer To String Literal | C Programming Tutorial
9:58
C Program To Generate Fibonacci Series using For Loop
3:26
Technotip
Рет қаралды 36 М.
Compiled Python is FAST
12:57
Doug Mercer
Рет қаралды 108 М.
а ты любишь париться?
00:41
KATYA KLON LIFE
Рет қаралды 3,7 МЛН