C Program to find the factorial of a number using recursion

preview_player
Показать описание
C program to find the factorial of a number using recursion
Рекомендации по теме
Комментарии
Автор

2 months old doubt about recursion solved. Thank u Sir!

satyaprakashmohanty
Автор

Thank you! I looked at 5 different videos, and you were the first to clearly explain this.

abeerzaib
Автор

nice explaination easy to understand, ,,thank u ...

sonugupta-hdxe
Автор

Seriously excellent..! 👏👏thanks alott ..

vaishnaviinamdar
Автор

proud to be your student. wishing you a happy youtube career sir....

prashanthnellutla
Автор

thank you so much.... Now I understand how it works... 😁

shivaniupadhyay
Автор

super sir, very good explanation thank u sir

ardraprasad
Автор

super !!!! easy to understand sir ....

ajayantheeswarsivasankaran
Автор

remove the BG noise can't hear property

heenavashisht
Автор

Sirji namaskar,
Sir here is my program which is as follows:-
/*program to find out factorial using recursion*/
#include<stdio.h>
#include<conio.h>
int fact(int);
main()
{
int x, y;
clrscr();
printf("Enter the value of x:");
scanf("%d", &x);
y=fact(x);
printf("\nFactorial = %d", y);
getch();
return y;
}
int fact(int)
{
int x, y;
if ((x==1) || (x==0))
{
return 1;
}
else
{
y=x*fact(x-1);
return y;
}
}
At the time of compiling, it shows an error named " Parameter 1 missing name".
I don't know how to solve this error. Please help me sir.

Thank You

Dinesh_Kumar
Автор

Sir... why we use recursion?.. jbki loop ke through hum wahi kam kr rahe h easily

shivaniupadhyay
Автор

can u explain krishnamoorthy number that is fact of 145

rezmiramakrishnan