answersLogoWhite

0


Best Answer

#include<stdio.h>

#include<conio.h>

void main()

{

int n=5,fact=1;

void fact();

printf("the value is %d",fact);

getch();

}

fact()

{

fact=fact(n)*fact(n-1);

return fact;

}

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Can you write a program for finding the prime factor using recursive function?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

The result of division is called?

Division is a function of mathematics. The result of this process is finding the product of division. This is the factor that connects two numbers.


What is the difference between finding a factor and finding a multiple?

a factor is what you multiply by a multiple is the answer


What are the 2 method of finding the prime factor?

Factor trees and factor rainbows.


What is x factor about?

The X Factor is about finding an artist who has the "whole package."


How do you know if an expression is prime?

You try finding a factor. If there is no proper factor, then it is a prime.


What are the advantages of using a recursive function in c?

Advantages:Through Recursion one can Solve problems in easy way whileits iterative solution is very big and complex.Ex : tower of HanoiYou reduce size of the code when you use recursive call.Disadvantages :Recursive solution is always logical and it is verydifficult to trace.(debug and understand)Before each recursive calls current values of the variblesin the function is stored in the PCB, ie process controlblock and this PCB is pushed in the OS Stack.So sometimes alot of free memory is require for recursivesolutions.Remember : whatever could be done through recursion could bedone through iterative way but reverse is not true.


What is the function of a rhibosome?

The function of the ribosome is to factor and create protiens


What are the finding special products?

multiply the first factor to the first term of the second factor


What do you call the process of finding the prime factor string of a product?

A Factor Tree i believe


What is the process of finding the factor is called?

factoring or factorizing


What is a key factor?

is a factor that contributes towards some activity or function


What are the factors and greatest common factor for?

Finding the greatest common factor helps when you are reducing fractions.