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


Please Help Members By Posting Answers For Below Questions

What are guid?

796


what is the difference between linear list linked representaion and linked representation? what is the purpose of representing the linear list in linked represention ? is it not avoiding rules of linear represention?

1840


Can member functions be private?

675


Can a class be static in c++?

675


Is dev c++ free?

694






What is the latest version on c++?

773


Explain dangling pointer.

768


What can c++ be used for?

678


What is operators in c++?

669


Which of the following is evaluated first: a) && b) || c) !

1939


Does c++ vector allocate memory?

630


What does ctime() do?

691


What c++ library is string in?

692


To what does “event-driven” refer?

712


Can turbo c++ run c program?

738