This file contains hidden or 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
int euclides(int dividendo, int divisor) | |
{ | |
return abs(divisor) != 0 ? euclides(divisor, dividendo % divisor) : dividendo; | |
} |
This file contains hidden or 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
int fibonacci(int n) | |
{ | |
return abs(n) > 1 ? fibonacci(n - 1) + fibonacci(n - 2) : 1; | |
} |
This file contains hidden or 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
int fatorial(int n) | |
{ | |
return abs(n) > 1 ? n * fatorial(n - 1) : 1; | |
} |
This file contains hidden or 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
Instalação no Manjaro | |
1. Instalamos o programa Debtap | |
sudo pacman -Syu debtap | |
2. Baixamos o executável do Prepros | |
https://bit.ly/prepros-6-linux | |
3. Na pasta aonde se encontra o arquivo do prepros fazemos: | |
sudo debtap Prepros-Linux-6.1.1.deb |
This file contains hidden or 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
- var droids = ["R2D2", "C3PO", "BB8"]; | |
div | |
h1 Famous Droids from Star Wars | |
for name in droids | |
div.card | |
h2=name |