1.Between 100 and 999 are some numbers that have the
characteristics that if you cube the individual digits and
sum together you will get the same number.
2. A program that can accept as input an integer and output
the equivalent of that number in words.
Answer Posted / thirunavukkarasu
#include<stdio.h>
#include<math.h>
int a,b,c;
int main()
{
for(a=0;a<=9;a++)
{
for(b=0;b<=9;b++)
{
for(c=0;c<=9;c++)
if ((a*a*a)+(b*b*b)+(c*c*c)==(100*a)+(10*b)+(c))
printf("\nThe Numbers are :%d",(100*a)+(10*b)+(c));
}
}
return 0;
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why do we use double in c++?
Explain polymorphism?
Why do we use classes in programming?
What is vector pair in c++?
What is command line arguments in C++? What are its uses? Where we have to use this?
What is iomanip c++?
How do I download c++?
What are the advantages of c++ over c?
Is there structure in c++?
Explain the register storage classes in c++.
What is data hiding c++?
What number of digits that can be accuratly stored in a float (based on the IEEE Standard 754)? a) 6 b) 38 c) An unlimited number
What is java and c++?
What is ostream in c++?
What is function prototyping? What are its advantages?