C Program To Find Factorial of a Number using For Loop

preview_player
Показать описание

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

C Programming: Beginner To Advance To Expert
Рекомендации по теме
Комментарии
Автор

Very nice teaching
Thanks for teaching us

kulvinderkaur
Автор

Thank you sir this is very usefull for me

sobibhat
Автор

mashallaha bht acha smj aaa jta ha ap ka leacture☺☺☺☺☺☺

eshakhan
Автор

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.

pp
Автор

If i write 4 then how will i get the output like 4*3*2*1=24

visheshchauhan
Автор

it doesnt work for large number, bcuz of size of integer . large number cant be store be integer data type

abhay-zwyw
Автор

When I type a no in terminal ..nothing happens.

deepshikhameghwal
Автор

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

princesszoni
Автор

Why do 13 factorial and above become negative using this program?

MigzMercado
Автор

Sir op promote us also please in community's post

NA-DEVIL
Автор

What if i didn't mention, fact= 1... What would it take as default value... ??

sudipsarkar
Автор

1 write algorithm
2 Write (n=4 C program size 10 items.
Use neutral language.
Please help me with the video

wbveczs
Автор

What's the name of c programming application?

aqeelsaifi
Автор

If we find the factorial of 0, then your program displays the factorial 0 but the answer is 1

manabendrathakuria
Автор

Tumar program 2 howa nai karon 9, 8 number bilakor factorial nulai.only 5, 4, 3, 2 karone he program 2 right

tafikurrahman
Автор

It gives wrong answer from factorial of 8

sauravbikramkadariya