Write the program form Armstrong no in c++?

Answer Posted / hitesh

Armstrong Program in C++

Armstrong number is a number that is the sum of its own digits each raised to the power of the number of digits is equal to the number itself.
For example 153 is armstrong number, 132 is not prime number. <a href="http://www.tutorial4us.com/cpp-program/cpp-armstrong-program" rel="nofollow">Armstrong program in c++</a> is very simple and easy to write.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the virtual inheritance in c++.

594


Difference between class and structure.

708


What is string in c++ programming?

619


declare an array of structure where the members of the structure are integer variable float variable integer array char variable access all elements of the structure using dot operator and this pointer operator

1739


Write a function that swaps the values of two integers, using int* as the argument type?

603






What is rtti in c++?

625


What is a singleton c++?

548


List the special characteristics of constructor.

724


Can circle be called an ellipse?

632


can any one help to find a specific string between html tags which is changed to a sting.. weather.html looks (for location) is somewhere #include #include #include using namespace std; string find_field(string myPage,string); int main (void) { string page, line, location, temperature; ifstream inputFile("weather.xml"); while(getline(inputFile, line)) { page.append(line); line.erase(); } // Now page is a string that contains the whole xml page // Here you need to write something that finds and // extracts location and temperature from the XML // data in the string page and stores them in // the strings location and temperature respectively location=find_field(page,"location"); temperature=find_field(page,"temp_c"); cout << "Location: "<

1641


What is a pdb file?

535


Explain the different access specifiers for the class member in c++.

544


Specify different types of decision control statements?

352


Explain 'this' pointer and what would happen if a pointer is deleted twice?

600


What is the use of vtable?

667