Write a prog to find all Armstrong number in the range 0to999

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • sriparna mukhopadhyay
    New Member
    • Aug 2008
    • 1

    Write a prog to find all Armstrong number in the range 0to999

    Sir/Madam
    I would be very glad if you answer the above written problem in C prog code.
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    We're not a 'do your homework' service; do you know the definition of an Armstrong
    number?

    kind regards,

    Jos

    Comment

    • newb16
      Contributor
      • Jul 2008
      • 687

      #3
      Base?
      We charge $40/hr.

      Comment

      • JosAH
        Recognized Expert MVP
        • Mar 2007
        • 11453

        #4
        Originally posted by newb16
        Base?
        We charge $40/hr.
        You're too cheap; I charge at least $100/hr but then again I deliver a neat report
        including a nice little proof about the non existence of four or more digits Armstrong
        numbers.

        kind regards,

        Jos ;-)

        Comment

        • Banfa
          Recognized Expert Expert
          • Feb 2006
          • 9067

          #5
          Originally posted by JosAH
          a nice little proof about the non existence of four or more digits Armstrong numbers.
          Interesting in that case what is the difference between Armstrong numbers and narcissistic numbers since wiki gives the largest narcissistic number as

          115,132,219,018 ,763,992,565,09 5,597,973,971,5 22,401

          which clearly has more than 4 digits?

          Comment

          • JosAH
            Recognized Expert MVP
            • Mar 2007
            • 11453

            #6
            Originally posted by Banfa
            Interesting in that case what is the difference between Armstrong numbers and narcissistic numbers since wiki gives the largest narcissistic number as

            115,132,219,018 ,763,992,565,09 5,597,973,971,5 22,401

            which clearly has more than 4 digits?
            Well, I didn't say it was a *correct* proof but a neat proof nevertheless ;-)

            kind regards,

            Jos (<--- puts brown paper bag over head ;-)

            ps. I know that guy who came up with that beast, it's Dik T. Winter

            Comment

            • newb16
              Contributor
              • Jul 2008
              • 687

              #7
              Ok. here you are.
              Code:
              Code removed, even it it's bad code, per posting guidelines
              RRII(result.ret .in.init.) C++ rapadigm (mocked from raii one for sure) is actively used rendering practical usefullness to zero though it can be used in research purposes.
              You're charged $30. I'd like it in 10 and 20 bills, thank you.

              Comment

              • newb16
                Contributor
                • Jul 2008
                • 687

                #8
                Originally posted by newb16
                Ok. here you are.
                Code:
                Code removed, even it it's bad code, per posting guidelines
                And what exactly wrong was with this code, apart from 'indentation'?

                Comment

                • JosAH
                  Recognized Expert MVP
                  • Mar 2007
                  • 11453

                  #9
                  Originally posted by newb16
                  And what exactly wrong was with this code, apart from 'indentation'?
                  I don't know, I never saw it but I think you were spoonfeeding the OP which is
                  not allowed here.

                  kind regards,

                  Jos

                  Comment

                  • whodgson
                    Contributor
                    • Jan 2007
                    • 542

                    #10
                    A program is not required.
                    They are: 001,153,370,371 and 407. QED

                    Comment

                    • Jondlar
                      New Member
                      • Sep 2008
                      • 9

                      #11
                      Originally posted by whodgson
                      A program is not required.
                      They are: 001,153,370,371 and 407. QED
                      The person wants to write a program for finding Armstrong numbers. But you are giving bull advice.

                      I am very much disappointed in Bytes forums. When someone tries to post a sane reply, the admins edit/block/delete/remove the post very fast. At the same time, they take no pains to post some helpful advice.

                      But still this is supposed to be a C/C++ helping forum. Just have a look at the replies to the question asked.

                      I posted 3-4 times in this thread, and no all got removed. I didnt even post any code. But the funny, curt or mocking replies remain.

                      Have a nice day.

                      Comment

                      • Banfa
                        Recognized Expert Expert
                        • Feb 2006
                        • 9067

                        #12
                        Thread Closed

                        The original post was low quality and it has not developed anywhere

                        Comment

                        Working...