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

Write a recursive program to calculate factorial in c++.

707


What are protected members in c++?

718


Why #include is used?

699


Explain what are the sizes and ranges of the basic c++ data types?

740


Is c# written in c++?

622






Array base access faster or pointer base access is faster?

1924


How would you use the functions sin(), pow(), sqrt()?

836


Which compiler does turbo c++ use?

700


To which numbering system can the binary number 1101100100111100 be easily converted to?

701


How do you clear a set in c++?

713


If there are two catch statements, one for base and one for derived, which should come first?

663


What is general form of pure virtual function? Explain?

602


Is main a class in c++?

641


Is c++ low level?

695


What are the syntactic rules to be avoid ambiguity in multiple inheritance?

758