Fuel your ambition, discover your passion and achieve your professional goals with LetsUpgrade.
Sign Up Now
can anyone help me how to stop the loop after encountering the first armstrong number as I have written the code for armstrong but stuck in stopping it after encounter?
Batch 5 day3 assignment 3 Cant find first armstrong number,numbers within given range can be found. ...
Can we solve day3 assignment 3 by using lower value 1042000 and upper value 702648265 to w find first Armstrong no. ... no. within 1042000-702648265?
for num in range(100,10000): temp=num sum=0 while temp>0: r=temp%10 sum=sum+r**3 temp=temp//10 ... encountering first armstrong number?