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


Please Help Members By Posting Answers For Below Questions

Can member data be public?

597


What is expression parser in c++

1886


What is object in c++ example?

623


Which is the best c++ compiler for beginners?

556


Write a program for Divide a number with 2 and Print the output ( NOTE: Check for divide by zero error).

632






Write a Program for find and replace a character in a string.

552


Explain virtual destructor?

673


What is an operator in c++?

611


How the programmer of a class should decide whether to declare member function or a friend function?

682


Can I uninstall microsoft c++ redistributable?

606


How do you flush a buffer in c++?

600


What are static member functions?

616


Who created c++?

576


What is a responder chain?

570


How does list r; differs from list r();?

687