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
def fatorial(n) | |
if n == 0 | |
1 | |
else | |
n * fatorial(n - 1) | |
end | |
end | |
puts fatorial(5) |
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
function calculaDiasDeVida(idade) { | |
return idade * 365; | |
} | |
function calculaBatimentos(dias) { | |
return dias * 24 * 60 * 80; | |
} | |
var idade = 17; |
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Loteria</title> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
var numerosJogador = [] | |
, numerosAleatorios = [] |
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
998765432 | |
22345678 | |
9.9876.5432 | |
2234.5678 | |
22.34.5678 | |
99876-5432 | |
2234-5678 | |
998-765-432 | |
998.765.432 | |
2234 5678 |
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
interactor :off | |
notification :off | |
guard :shell do | |
watch(%r{^test/(.+)_test\.rb$}) { task } | |
watch(%r{^lib/(.+)\.rb$}) { task } | |
watch('Guardfile') { task } | |
end | |
def task |
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
ba |
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
lol. |
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
/* | |
* Problem: https://www.urionlinejudge.com.br/judge/en/problems/view/1009 | |
* | |
*/ | |
#include <stdio.h> | |
int main() { | |
char *name; | |
float salary, sale_total, total; |
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
/* | |
* Problem: https://www.urionlinejudge.com.br/judge/en/problems/view/1010 | |
* | |
*/ | |
#include <stdio.h> | |
int main() { | |
int code_one, code_two, units_one, units_two; | |
float price_one, price_two, total; |
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
#include <stdio.h> | |
int main() { | |
int i = 5; | |
// Usando i++ | |
printf("%d\n", i++); // => Primeiro incremento | |
printf("%d\n", i++); // => Segundo incremento | |
printf("%d\n", i); | |
printf("%d\n", i); |