Skip to content

Instantly share code, notes, and snippets.

@DanTup
Created October 24, 2022 18:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DanTup/dd244e3c20d14258fe1dfcc9d91b9f1c to your computer and use it in GitHub Desktop.
Save DanTup/dd244e3c20d14258fe1dfcc9d91b9f1c to your computer and use it in GitHub Desktop.
quintessential-dryad-3795

quintessential-dryad-3795

Created with <3 with dartpad.dev.

void main() {
var num = 5;
var factorial = 1;
for( var i = num ; i >= 1; i-- ) {
factorial = factorial * i ;
print(factorial);
}
print(factorial);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment