Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

what is the significance of static storage class specifier?

2185


What are the rules for identifiers in c?

1029


What is file in c preprocessor?

1089


What does #pragma once mean?

1110


Explain what is meant by high-order and low-order bytes?

999


Explain what is the difference between text files and binary files?

1096


Can we change the value of static variable in c?

971


What is the use of linkage in c language?

1011


How many types of functions are there in c?

1064


What does %d do in c?

911


Explain the bubble sort algorithm.

1005


How can I read/write structures from/to data files?

924


How do you use a 'Local Block'?

1120


What is dynamic memory allocation?

1283


Explain the priority queues?

1032