It is currently Fri Jul 30, 2010 1:59 pm


All times are UTC [ DST ]


Ask on Codemiles community and get answers Free and Fast :

Ask your C-C++ questions ,C-C++ codes,C-C++ tricks ,C-C++ faq ,C-C++ answers .and more

Our guest share with us your code snippets , your programming problems , your open source projects ,read articles and post yours .







Post new topic Reply to topic  [ 3 posts ] 
  Print view Previous topic | Next topic 
Author Message
 Post subject: cubic power for each digit
PostPosted: Wed May 27, 2009 12:34 am 
Offline
Newbie
User avatar

Joined: Wed May 27, 2009 12:20 am
Posts: 1
Location: lebanon
Has thanked: 0 time
Have thanks: 0 time

i an trying to solve a problem that has a no. "abc", if we make the cubic power for each digit of the number, then add the results, it should give the same number "abc" as above
im using the C language and need some help to execute my program
here are the codes i used :

Code:
include<stdio.h>

int main ()
{
   int   pow (int x, int y);
   
   int i,j,k;
   int sum=0;
   int c,d,f;

   for(i=1;i<5;i++)
   {for(j=1;j<5;j++)
   {for(k=1;k<5;k++)
   {
   
   c==i^3;
   d==j^3;
   f==k^3;
   }}}
      
   sum=sum+c+d+f;

   if(sum=i*100+j*10+k)
   
   {printf("the %d %d %d are numbers having the sum of cubic power of each is %d\n\n\n",i,j,k,sum);
   
   }
   return 0;
   }


mail : ali.alakhdar@hotmail.com


TOP
 Profile Send private message  
 
| More
 Post subject: Re: cubic power for each digit
PostPosted: Mon Aug 24, 2009 4:50 pm 
Offline
Mastermind
User avatar

Joined: Tue Mar 27, 2007 10:55 pm
Posts: 1573
Location: Earth
Has thanked: 10 time
Have thanks: 16 time

I really don't understand your problem .But it is seems interesting can you clear it more .

_________________
Currenlty programming with : java , html , php , and javascript .


TOP
 Profile Send private message  
 
| More
 Post subject: Re: cubic power for each digit
PostPosted: Sun Aug 30, 2009 8:25 pm 
Offline
Moderator
User avatar

Joined: Fri Nov 21, 2008 6:18 pm
Posts: 50
Location: thessaloniki
Has thanked: 0 time
Have thanks: 0 time

what compiler you are using in order to understand and help you to execute your programme each one has its own execution methods in some you might need to add some specified libraries;)

_________________
if you want make an effort yourself no one will make it for you...
best regards


TOP
 Profile Send private message  
 
| More
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 


 Similar topics
 Topic title   Forum   Author   Replies 
 All 4 CCNA semesters in power point pass?  CISCO systems  bbl  6
 Power builder with DB2 - Virginia Garden, FL- Contract  USA Jobs  santoshaidam  1
 JAX India 2009- Sessions, Power Workshop & Speakers Revealed  General Discussion  2009jax  0
 PHP5 Power Programming  offers  msi_333  0
 Php5 Power Programming  offers  Casper  0

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  





Home
General Talks
Finished Projects
Code Library
Games
Tutorials

Java
C/C++
C-sharp
php
Script
JSP/Servlets
Ajax
ASP/ASP.net
Google SEO
Database
Communications
Phpbb3 styles
Photoshop tutorials
Flash tutorials
Find a job






Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2009
mileX v1.0 designed by codemiles team