Created
January 11, 2014 02:12
-
-
Save skvggor/8366110 to your computer and use it in GitHub Desktop.
Chris python 2 code
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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
print 'Cálculo do peso ideal.' | |
altura = input('Digite seu altura: ') | |
masculino = (altura ** 2) * (22.5) | |
feminino = (altura ** 2) * (21) | |
sexo = raw_input('Digite seu sexo: ') | |
if sexo == 'masculino': | |
print(masculino) | |
else: | |
print(feminino) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment