Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What is the output of the following program? Why?

1084


Define pure virtual function?

931


What is size of string in c++?

925


Is swift a good first language?

1000


What is the use of cmath in c++?

1002


What is a friend function in c++?

1470


Mention the purpose of istream class?

1061


Explain the virtual inheritance in c++.

1001


Why are pointers not used in c++?

1080


What is main function in c++ with example?

1139


What is #include iostream?

1190


Why do we need c++?

985


What c++ is used for?

1010


How to allocate memory dynamically for a reference?

992


Describe the role of the c++ in the tradeoff of safety vs. Usability?

1158