View Code of Problem 91

#include <stdio.h>
#include <math.h>
int main(){
	int n;
	scanf("%d",&n);
	printf("%d=",n);
	int i;
	for(i=2;i<=sqrt(n);i++){
		if(n%i==0){
			printf("%d*",i);
			n/=i;
			i--;
		}
	}
	printf("%d",n);
}

Double click to view unformatted code.


Back to problem 91