473,378 Members | 1,140 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

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.
Aug 13 '08 #1
11 6112
JosAH
11,448 Expert 8TB
We're not a 'do your homework' service; do you know the definition of an Armstrong
number?

kind regards,

Jos
Aug 13 '08 #2
newb16
687 512MB
Base?
We charge $40/hr.
Aug 14 '08 #3
JosAH
11,448 Expert 8TB
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 ;-)
Aug 14 '08 #4
Banfa
9,065 Expert Mod 8TB
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,095,597,973,971,522,40 1

which clearly has more than 4 digits?
Aug 14 '08 #5
JosAH
11,448 Expert 8TB
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,095,597,973,971,522,40 1

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
Aug 14 '08 #6
newb16
687 512MB
Ok. here you are.
Expand|Select|Wrap|Line Numbers
  1. Code removed, even it it's bad code, per posting guidelines
  2.  
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.
Aug 14 '08 #7
newb16
687 512MB
Ok. here you are.
Expand|Select|Wrap|Line Numbers
  1. Code removed, even it it's bad code, per posting guidelines
  2.  
And what exactly wrong was with this code, apart from 'indentation'?
Aug 15 '08 #8
JosAH
11,448 Expert 8TB
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
Aug 15 '08 #9
whodgson
542 512MB
A program is not required.
They are: 001,153,370,371 and 407. QED
Aug 20 '08 #10
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.
Sep 26 '08 #11
Banfa
9,065 Expert Mod 8TB
Thread Closed

The original post was low quality and it has not developed anywhere
Sep 27 '08 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: haynesc | last post by:
Hi, I'm having a problem where when trying to open a file in write mode, I get an IOError stating no such file or directory. I'm calling an external program which takes an input file and...
3
by: Josh Armstrong | last post by:
I have a dropbox (cboReasons) in a form, when the user selects a reason from the dropbox the form needs to look in another table (lvsn_DefaultSettings) and see if there is a entry for that reason...
3
by: Agnes | last post by:
Can I write a file like config.ini which store the server-name, userid & password, So, my application can read the config.ini file and get the server - name, Does my concept is correct ? If...
4
by: Seok Bee | last post by:
Dear Experts, I have created a script to extract the Event Logs from the system into an excel sheet. The logs are separated into 2 worksheets (Application Log and System Log). After this excel...
16
by: Petrakid | last post by:
Hey, I have a task to complete. I am trying to figure out the best way, in C++ to determine the following. There is this farm with pigs and chickens. Only the legs of the pigs and chickens look...
2
by: ashu | last post by:
an armstrong number of three digits is an integer such that the sum of the cubes of its digits is equal to the number itself. for example, 171 is an armstrong number since 3**3+7**7+1**1=371. i...
2
by: susmitasp | last post by:
Question: 24students registered to the class. Write C++ program to find how many students with age range of: //- less than 25 //- 26-30 //- 31-40 //- 41 and above Please try to help me to...
19
by: pitamber kumar | last post by:
Write a program to find the number of and sum of all intergers greater than 100 & less than 200 that are divisible by 7.
63
by: Bill Cunningham | last post by:
I don't think I can do this without some help or hints. Here is the code I have. #include <stdio.h> #include <stdlib.h> double input(double input) { int count=0,div=0; double...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.