Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

write a program that finds the factorial of a number using
recursion?

Answer Posted / sheenu singla

//program to find the factorial of a number
#include<stdio.h>
#include<conio.h>
void main()
{
int a,fact=1;
for(a=1;a<=5;a++)
fact=fact*a;
}
printf("%d",fact);
getch();
}

Is This Answer Correct ?    18 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What's the total generic pointer type?

1109


Under what circumstances does a name clash occur?

1279


What are header files and explain what are its uses in c programming?

1174


what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?

1919


write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.

4017


What is volatile variable in c with example?

1091


What is fflush() function?

1190


#include #include struct stu { int i; char j; }; union uni { int i; char j; }; void main() { int j,k; clrscr(); struct stu s; j=sizeof(s); printf("%d",j); union uni u; k=sizeof(u); printf("%d",k); getch(); } what is value of j and k.

6397


Explain enumerated types.

1088


What is the right way to use errno?

1119


What are the preprocessor categories?

1117


what is the syallabus of computer science students in group- 1?

2369


if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0

2014


The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?

1266


writ a program to compare using strcmp VIVA and viva with its output.

2083