void main() {
var num = 5;
var factorial = 1;
for( var i = num ; i >= 1; i-- ) {
factorial *= i ;
}
print(factorial);
}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/266112.html
void main() {
var num = 5;
var factorial = 1;
for( var i = num ; i >= 1; i-- ) {
factorial *= i ;
}
print(factorial);
}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/266112.html