#include<stdio.h>
int main() {
int n, i;
printf("Enter the Number: ");
while (scanf("%d", &n) != EOF) {
for (i = 2; i <= n && n > 1; ) {
if (n % i == 0) {
printf("%d ", i);
n /= i;
}
else i++;
}
printf("\nEnter the Number: ");
}
return 0;
}
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.