Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can anyon ehlp with armstrong assignment #23

Open
preethi039 opened this issue Sep 10, 2020 · 2 comments
Open

can anyon ehlp with armstrong assignment #23

preethi039 opened this issue Sep 10, 2020 · 2 comments

Comments

@preethi039
Copy link

No description provided.

@vidyasrineeharika
Copy link

for i in range(1042000,702648265): sum=0 temp=i while temp>0: r=temp%10 sum=sum+r**3 temp=temp//10 if sum==i: print("the first armstrong num",i) break
The main issue I'm getting is when I enter (1042000,702648265) as the range it's not working. But when I enter (1,999) or something less than this it's working perfectly. Hey, can anyone please help me with this.
Thank you!!

@maranix
Copy link

maranix commented Sep 10, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants