The problem is that you didn't put braces {} on your for statement:
if (number>0)
{
for (count=1; count<=number; count++)
{
factorial = factorial*count;
System.out.print(count);
if(count < number)
System.out.print(" * ");
}
System.out.println("Factorial of your number is "+factorial);
System.out.println();
}
Also, if you're concerned about the order (1,2,4,5 instead of 5,4,3,2,1) you could do the following (changing the for loop):
if (number>0)
{
for (count=number; count>1; count--)
{
factorial = factorial*count;
System.out.print(count);
if(count > 2)
System.out.print(" * ");
}
System.out.println("Factorial of your number is "+factorial);
System.out.println();
}