Hi im writing a program in C that will find the prime factors of a number. When i compile it and put in a number i dont get any thing Any idea what i did wrong in my code?

#include <stdio.h>

int main()

{

int n, k;

printf("Enter the number to factor:");

scanf("%d",&n);

printf("\nThe prime factors of %d are",n);

for(k=2; k*k<=n;)

{

if (n<0)

break;}

if( n%k==0)

{

printf(" %d",k);

n=n/k;

}

else

{

k++;

}

printf("n");

return(0);

}