Created with <3 with dartpad.dev.
Created
October 24, 2022 18:37
-
-
Save DanTup/dd244e3c20d14258fe1dfcc9d91b9f1c to your computer and use it in GitHub Desktop.
quintessential-dryad-3795
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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