answersLogoWhite

0

#include

#include

void main()

{

int i,n;

clrscr();

ptintf("\n enter the no.\n");

scanf("%d",&n);

for(i=2;i<=n;i++)

{

if(n%i==0)

{

printf("\t %d",i);

n=n/i;

i--;

}

}

getch();

}

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

Write a Shell program to find the smallest number from a set of numbers?

k


Write a Shell program to find the sum of cube of individual digits of a number?

no thanks


How do you write a java program to find the square root of a number?

You can use the Math.sqrt() method.


Write a c program to find given number is prime or not?

Yes, do write, or if you're too lazy to your homework, use google.


What is the largest prime no that is stored in 8 bit pattern?

Write your own prime number program and find out.


Writes a c program to find the sum of all integers between 1 and n?

Write a program to find the number and sum of all integers from 100 to 300 that are divisible by 11


How do you write Square program using vb?

write a vb program to find the magic square


How do you write socket program in c?

For first find an example program.


Write a program to find the grade obtained by the students of a class using structure?

Write a program to find the grade obtained by the students of a class


How could you use a Venn Diagram to help find the greatest common factor of two Numbers?

Write the factors of the first number in the left circle. Write the factors of the second number in the right circle. Write the numbers that are the same in each individual circle in the space where they intersect.


Write a C program called MonthDays to find the number of days in a given month Test your code with different input values to demonstrate that your function is robust?

Write a C program called MonthDays to find the number of days in a given month Test your code with different input values to demonstrate that your function is robust?


Write a c program to find eigenvalue of a matrix?

Yes, do write. That's what you always have to do when you have got a homework-program.