Answer Posted / astitva srivastava
#include<iostream.h>
#include<conio.h>
void main()
{
int n,r,s=0;
cout<<"enter the no.";
cin>>n;
int b=n;
while(n>0)
{
r=n%10;
n=n/10;
s=s+(r*r*r);
}
if(b==s)
{
cout<<"the no. is armstrong"<<"\n";
}
else
{
cout<<"the no. is not a armstrong no.";
}
}
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What are abstract data types in c++?
What is a lambda function c++?
What kind of jobs can I get with c++?
What is c++ namespace?
What is the extension of c++?
Briefly describe a B+ tree. What is bulk loading in it?
Explain rtti.
Can you please explain the difference between overloading and overriding?
Explain polymorphism?
What is the size of a vector?
What is abstraction c++?
What is problem with overriding functions?
To which numbering system can the binary number 1101100100111100 be easily converted to?
What is the use of turbo c++?
How can you quickly find the number of elements stored in a static array? Why is it difficult to store linked list in an array?