Last active
December 14, 2015 04:48
-
-
Save mebius01/5030285 to your computer and use it in GitHub Desktop.
proc
Считалка надбавки (цена*курсс+процент)
Добавлена рекурсивный вызов функции
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/env python | |
# -*- coding: utf8 -*- | |
#27.11.2012 | |
PocenT=int(input(" Процент: ")) | |
RurS=float(input(" Курс (x.x): ")) | |
def Cena(x): | |
d = x * PocenT | |
d = d / 100 | |
x = x+d | |
x=x*RurS | |
print x | |
# Рекурсивный вызов функции 27.02.2013 | |
def Quest_def(): | |
Quest = float(input("по чем в $: ")) | |
if Quest != 0: | |
Cena(Quest) | |
Quest_def() | |
Quest_def() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment