← Back to Forum
Comments
#Morgan Su, BayviewSS P=int(input()) N=int(input()) R=int(input()) total=N amt=N counter=0 while total<=P: nInf=R*amt total+=nInf amt=nInf counter+=1 print(counter)
By msu7 on 8/4/2025
#Morgan Su, BayviewSS P=int(input()) N=int(input()) R=int(input()) total=N amt=N counter=0 while total<=P: nInf=R*amt total+=nInf amt=nInf counter+=1 print(counter)