Sep-25-2018, 11:08 PM
(This post was last modified: Sep-25-2018, 11:11 PM by ichabod801.)
Hey, i am having a problem with a while loop and i am a beginner in python. How could i do a while loop so that python understands it this way : While n is not an integer, add 1 to the value of m(so in that case m would become 2) and then recalculate everything.
Thanks!
Thanks!
R=float(7) r=float(5) m=float(1) n=(r/(R-r))*m if n==int: print('Voici la valeur de n désirée',n) else: while n!=int: m+=1 print("Voici les valeurs m et n (m,n)",(m,n))