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.

Answers were Sorted based on User's Feedback



1.Between 100 and 999 are some numbers that have the characteristics that if you cube the individua..

Answer / leosoft

#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 ?    2 Yes 0 No

1.Between 100 and 999 are some numbers that have the characteristics that if you cube the individua..

Answer / 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

1.Between 100 and 999 are some numbers that have the characteristics that if you cube the individua..

Answer / 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

More C++ General Interview Questions

Can I make ios apps with c++?

0 Answers  


What is a concrete class?

1 Answers  


what are the iterator and generic algorithms.

0 Answers  


What is insertion sorting?

0 Answers  


How do you clear a map in c++?

0 Answers  






why v use c++ even we have microprocessor

2 Answers   CybAge,


What is the difference between a declaration and a definition?

0 Answers  


Why is c++ awesome?

0 Answers  


What will i and j equal after the code below is executed? Explain your answer.

1 Answers  


What is the Diffrence between a "assignment operator" and a "copy constructor"?

3 Answers   Wipro,


Can a program run without main in c++?

0 Answers  


Differentiate between an external iterator and an internal iterator?

0 Answers  


Categories