Factorial In C Programming Tamil (recuslion)


#include<stdio.h>
#include<conio.h>
int fact(int);
void main()
{
	int n;
	clrscr();
	printf("\n Enter the number :");
	scanf("%d",&n);
	printf("\n Factorial of given number %d :%d",n,fact(n));
	getch();
}
int fact(int x)
{
	if(x==1)
	return(1);
	else
	x=x*fact(x-1);
	return(x);
}

Login To Download Source Code

Leave a Comment:

Login To Comment

List Of Programs


Goto Examples

Operators

Looping

Number Conversion

Pattern Design

Arrays

Matrix Examples

Sorting Examples

String Function

Change Case

String In C

Maths Functions

User Defined Functions

Recursive Functions

Pointer

Structure

File Concept

Calender Programming