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
In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping
Describe dynamic data structure in c programming language?
What is function prototype?
What are pragmas and what are they good for?
write a programe to accept any two number and check the following condition using goto state ment.if a>b,print a & find whether it is even or odd and then print.and a
what is bit rate & baud rate? plz give wave forms
Does c have function or method?
What are the functions to open and close the file in c language?
What is the purpose of macro in C language?
What is a void pointer? When is a void pointer used?
What is #include in c?
What kind of structure is a house?
What is dangling pointer in c?
all c language question
What is uint8 in c?