#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();
}
k
no thanks
You can use the Math.sqrt() method.
Yes, do write, or if you're too lazy to your homework, use google.
Write your own prime number program and find out.
Write a program to find the number and sum of all integers from 100 to 300 that are divisible by 11
write a vb program to find the magic square
For first find an example program.
Write a program to find the grade obtained by the students of a class
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?
Yes, do write. That's what you always have to do when you have got a homework-program.