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
What's the total generic pointer type?
Under what circumstances does a name clash occur?
What are header files and explain what are its uses in c programming?
what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?
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.
What is volatile variable in c with example?
What is fflush() function?
#include
Explain enumerated types.
What is the right way to use errno?
What are the preprocessor categories?
what is the syallabus of computer science students in group- 1?
if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0
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?
writ a program to compare using strcmp VIVA and viva with its output.