Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  Test
Language: C/C++
Code:
#include <stdio.h>
int main(void) {
 int inDivisor=0, i=0 n=0;
printf("enter n value: ");
scanf("%d", &n);
 for (inDivisor=2; inDivisor<=n;inDivisor++) {
if (n%inDivisor==0) {
n/ inDivisor=n;
i=inDivisor;
printf("%d x ", i);
inDivisor=1;
}
}
return 0;
}
          
Comments: