4th Street Bar Hive-Bar

Hive-Bar Powered by Hive beta-fdb5b5b

Community post

Help me with this JAVA bug!

Let me make you clear, I'm not that of a programmer on myself. I'm learning by self from the web and I encountered a very unfamiliar bug in my java program. There is no syntax error but the output is incorrect. I've little knowledge in QBASIC and Python and JAVA is very new to me!

So after I learned a little maths syntax and a bit of loop in Java, I tried to create a program to find if the number is armstrong or not. Well, we all know '153' is a armstrong number but the program says that it isn't. I did maths on my own and I can't find out where the logic went wrong. I know there are very experienced programmers on the web who could help me with this logical error that I have encountered. !

44077944_482558132229562_8472875756563726336_n.jpg

here is the link to pastebin file of the actual code I used. Try to be as detail as possible in the comments because I may not know the technical terms.

7 upvotes $0.01

Replies (7)

Review before signing

Posting as . Signing with . Keychain permission: Posting. Hive Keychain will ask you to approve this action next.


  
Technical details

Operation fingerprint: