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 hotel_cost(nights): | |
return nights * 140 | |
bill = hotel_cost(5) | |
def add_monthly_interest(balance): | |
return balance * (1 + (0.15 / 12)) | |
def make_payment(payment, balance): | |
# In make_payment, you should first subtract payment from balance |
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
<?php | |
function delambre($year) | |
{ | |
//A = o resto de (Ano ÷ 19) | |
//B = o inteiro de (Ano ÷ 100) | |
//C = o resto de (Ano ÷ 100) | |
//D = o inteiro de (B ÷ 4) | |
//E = o resto de (B ÷ 4) | |
//F = o inteiro de [(B + 8) ÷ 25] | |
//G = o inteiro de [(B - F + 1) ÷ 3] |