public static void main (String args[] ){
int sum = 2;
for (int n = 2 ; n < 778 ; n++){
sum *= n - 1;
}
Или
int n = 778, sum = 0;
while ( n > 1) {
sum *= n
n--;
public static void main (String args[] ){
int sum = 2;
for (int n = 2 ; n < 778 ; n++){
sum *= n - 1;
}
}
Или
int n = 778, sum = 0;
while ( n > 1) {
sum *= n
n--;
}