Ficher exemple de while

# -*- coding: utf-8 -*-
"""
Created on Mon Dec  3 14:35:01 2018

@author: vmahout
"""

#while(True) :
#    print("Silence")
#
#Rep = 0
#
#while(Rep != 3) :
#    Rep = int(input('Que vaut 1+2 : '))
#
#####################################################

#Nombre = int(input ('Donnez un nombre :'))
#Resu = 0
#while (Nombre > 0) :
#    Resu = Resu + 1
#    Nombre = Nombre - 3
#    print("Dans la boucle Resu =",Resu,"Nombre =",Nombre)
#
#print('Resu vaut : ',Resu)

######################################################

Val = int(input ('Donnez un nombre :'))

Boucle = 0
while (Val < 150 and Boucle < 100):
    print("Boucle:",Boucle,"Val:",Val)
    Boucle = Boucle + 1
    Val = Val/2 + 2*Boucle
    
    
print('Val final vaut : ',Val)

######################################################

#X = float(input("Valeur initiale :"))
#i = 0
#while (X < 5000 and i < 10):
#    X = 1.5 *X + 0.25
#    i = i+1
#    print("X vaut au tour ",i," :",round(X,2))
#    
#