Created
March 25, 2011 03:39
-
-
Save nuryslyrt/886329 to your computer and use it in GitHub Desktop.
daire_fonk
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
import math | |
def daire_fonk(r): | |
cevre = 2*math.pi*r | |
alan = math.pi*r*r | |
if r > 0: | |
print 'dairenin cevresi',cevre,'birimdir.' | |
print 'dairenin alani',alan,'birim karedir.' | |
if r < 0: | |
print 'yaricap sifirdan kucuk olamaz' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment