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 / leosoft
#include<stdio.h>
#include<math.h>
int a,b,c;
int main()
{
for(a=100;a<=999;a++)
{
for(b=100;b<=999;b++)
{
for(c=100;c<=999;c++)
if (a*a*a+b*b*b+c*c*c==100*a+10*b+c)
printf("The Numbers are :%d %d %d",a,b,c);
}
}
}
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
What is abstraction c++?
Which is the best c++ compiler?
Why is c++ awesome?
Arrange Doubly linked list in the ascending order of its integral value and replace integer 5 with 7?
Write about an iterator class?
Can class objects be passed as function arguments?
What is c++ course?
Why is standard template library used?
Is c++ map a hash table?
What is the difference between an external iterator and an internal iterator?
Can java be faster than c++?
What is a c++ object?
Which sort does c++ use?
What does int * mean in c++?
What do you mean by const correctness?