# -*- coding: utf-8 -*-
"""
Created on Fri Dec  4 10:39:19 2020

@author: SIO1
"""
def Augmentation1 (N,P,t):
#Début
 for k in (1,N):
  P=P*(1+P/100)

 print("prix arrondis: ",round(P,2) )

def Augmentation2 (N2,P2,t2):
#Début
 for k in (1,N2):
  P2=P2*(1+P2/100)

 print("prix arrondis: ",round(P2,2))
 
#Algorithme principal
P=float(input("entrez prix au kilo des mangues: "))
N=int(input("entrez Nombre d'augmentation: "))
t=int(input("Entrez le taux d'augmentation: "))
Augmentation1(N,P,t)

P2=float(input("entrez prix au kilo des mangues du 2nd magasin: "))
N2=int(input("entrez Nombre d'augmentation du second magasin: "))
t2=int(input("Entrez le taux d'augmentation du second magasin: "))
Augmentation2(N2,P2,t2)
if P2> P:
 print("Premier magasin le moins cher")
else:
 print("Second magasin le moins cher")
