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

In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping

978


Describe dynamic data structure in c programming language?

606


What is function prototype?

611


What are pragmas and what are they good for?

577


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

1452






what is bit rate & baud rate? plz give wave forms

1519


Does c have function or method?

591


What are the functions to open and close the file in c language?

595


What is the purpose of macro in C language?

662


What is a void pointer? When is a void pointer used?

626


What is #include in c?

600


What kind of structure is a house?

557


What is dangling pointer in c?

625


all c language question

1875


What is uint8 in c?

642