C Program To Find Prime Factors of a Number using Recursion

preview_player
Показать описание

A positive integer is entered through the keyboard, write a C program to obtain the prime factors of the number. Modify the function suitably to obtain the prime factors recursively.

Analyze The Problem Statement
According to problem statement we need to find prime factors of user input positive integer number using iterative logic first, and then modify it and write a recursive logic to obtain the same result.

In our video tutorial we'll write both iterative as well as recursive logic. This way you can compare the two - both the similarities and differences in the code.

For Example: Prime factors of 24 are 2, 2, 2 and 3.

C Programming Interview / Viva Q&A List

C Programming: Beginner To Advance To Expert
Рекомендации по теме
Комментарии
Автор

Is it Eclipse IDE that u r using to write the code?

pradumnsharma
Автор

At 4:00, 9 is not a prime number sir please correct it sir

AmitKumar-cxps
Автор

And specially if it's prime numbers 😂

Sake