answersLogoWhite

0

#include <stdio.h>

void div(int n){

int i=2;

while(n%i!=0 && i!=n){

i++;

}

printf("%d ",i);

if(i!=n){

div(n/i);

}

}

main(){

int i;

printf("Enter number:");scanf("%d",&i);

printf("1 ");

div(i);

}

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

What is the code of a c program that will read in a positive integer value and determine If the integer is a prime number and If the integer is a Fibonacci number?

see the program


Write a program to subtract integer y from integer x?

x -=y;


Is -5 a integer?

1 hour ago my c program said no, but now I know 5 actually is an integer!


Does interpreter generate an object program from the source program?

No, that's what the compiler does.


How many people did the new deal program help or how much money did this program generate?

w


Write a c program to accept a numbers and generate square root cube and exponential values?

write a c program to accept a number and generate a square root cube and exponential values


Is there a program that you can type your own words and it will generate an essay paper for you?

Microsoft Word.


Shell program to generate the prime numbers betwee 1 to 50?

2,3,5,7,9,11,13,17,19,23,29,31,37,39,41,43,47,49


What program can one download that will generate auto leads?

TeleLeads Pro has a program that they offer that will generate auto leads. They offer the program specifically for certain countries like the U.S.A., Canada, U.K., Australia, Netherlands and more. The Canadian version of the software is available for $30 U.S.


Wrie a program to receive an integer and find its octal equivalant?

Use %o


How would you write a program that read an integer for display each of digit of integer in English?

Use an enum if you are using a c style language. Or a map data structure. Assign each integer an English value and then match it to what the user inputs.


Program to generate tokens from a given expression string?

a promlem to solve an equation or a assigment