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 is the significance of static storage class specifier?
What are the rules for identifiers in c?
What is file in c preprocessor?
What does #pragma once mean?
Explain what is meant by high-order and low-order bytes?
Explain what is the difference between text files and binary files?
Can we change the value of static variable in c?
What is the use of linkage in c language?
How many types of functions are there in c?
What does %d do in c?
Explain the bubble sort algorithm.
How can I read/write structures from/to data files?
How do you use a 'Local Block'?
What is dynamic memory allocation?
Explain the priority queues?