Skip to content

Instantly share code, notes, and snippets.

@antonprafanto
Created March 2, 2022 02:08
void main() {
var num = 5;
var factorial = 1;
while(num >=1) {
factorial = factorial * num;
num--;
}
print("The factorial is ${factorial}");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment