Skip to content

Instantly share code, notes, and snippets.

@dariogabriel113
Last active June 30, 2018 04:26
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dariogabriel113/e4d4b547c917788fc861cc6dd8c430b8 to your computer and use it in GitHub Desktop.
Save dariogabriel113/e4d4b547c917788fc861cc6dd8c430b8 to your computer and use it in GitHub Desktop.
public class Fatorial {
public static void main(String[] args) {
int fatorial = 1;
for (int i = 1; i < 11; i++) {
fatorial *= i;
System.out.println("Fatorial de " + i + " = " + fatorial);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment