Skip to content

Instantly share code, notes, and snippets.

@Kebechet
Created December 22, 2022 10:08
Show Gist options
  • Save Kebechet/997c0c9f5910d05177e279d3b9a402cd to your computer and use it in GitHub Desktop.
Save Kebechet/997c0c9f5910d05177e279d3b9a402cd to your computer and use it in GitHub Desktop.
factorial
int number = 5;
int result = 1;
for(int i=number; i!=0;i--){
result *= i;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment