求水仙花数也可以这样做的
											#include<stdio.h>#include<math.h>
void main()
{
int i,a,b,c;
for(i=100;i<=999;i++)
{
a=i/100;
b=(i%100)/10;
c=(i%100)%10;
if( i==pow(a,3)+pow(b,3)+pow(c,3))
printf("%4d",i);
}
printf("\n");
}
 2014-04-19 11:53
	    2014-04-19 11:53
   2014-04-19 11:59
	    2014-04-19 11:59
   2014-04-19 14:03
	    2014-04-19 14:03
   
										
					
	 2014-04-19 22:58
	    2014-04-19 22:58
   2014-04-20 11:46
	    2014-04-20 11:46
   
										
					
	 2014-04-20 19:29
	    2014-04-20 19:29