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
hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..
What are different types of operators?
What is c method?
How can I get back to the interactive keyboard if stdin is redirected?
Differentiate between null and void pointers.
Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.
How can I get random integers in a certain range?
What is the most efficient way to count the number of bits which are set in an integer?
Why dont c comments nest?
Explain how many levels deep can include files be nested?
Explain what are preprocessor directives?
What is the difference between mpi and openmp?
What is a nested loop?
What are structure members?
what do u mean by Direct access files? then can u explain about Direct Access Files?