Skip to content

Instantly share code, notes, and snippets.

@mebius01
Last active December 14, 2015 04:48
Show Gist options
  • Save mebius01/5030285 to your computer and use it in GitHub Desktop.
Save mebius01/5030285 to your computer and use it in GitHub Desktop.
proc Считалка надбавки (цена*курсс+процент) Добавлена рекурсивный вызов функции
#!/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