View Code of Problem 91

#include "stdio.h"
#include "math.h"
#include "string.h"

void main()
{
	int i,j,k;
	int n;
	scanf("%d",&n);
	printf("%d=",n);
		for(j=2;j<n;)
		{
			if(n%j==0)
			{
				printf("%d*",j);
				n=n/j;
			}
			else
				j++;
		}
	printf("%d",n);
} 

Double click to view unformatted code.


Back to problem 91