我怎样才能使我的代码
class Factorial {
public static void main(String args[]) {
int n, c, fact = 1;
for ( c = 1 ; c <= 5 ; c++ ) {
fact = fact*c;
System.out.println(fact);
}
}
}
看起来像这样
X X!
1 1
2 2
3 6
4 24
5 120