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 / 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 the unique features of C++.

1073


What is object oriented programming (oop)?

1109


Can we declare a base-class destructor as virtual?

1006


How do I write a c++ program?

1114


Explain the differences between private, public and protected and give examples.

1023


What are associate containers?

1020


Is ca high or low level language?

1078


Is c++ low level?

1030


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

1078


Is c++ vector dynamic?

1110


What is the copy-and-swap idiom?

1103


Can we use clrscr in c++?

1079


What are the benefits of operator overloading?

1210


How the keyword struct is different from the keyword class in c++?

1037


Draw a flow chart and write a program for the difference between the sum of elements with odd and even numbers. Two dimensional array.

6403