标签:
#include <stdio.h>
void main(){
int ge,shi,bai;
for (int i =100; i < 1000; i++)
{
bai=i/100;
shi=i%100/10;
ge=i%100%10;
if(bai*bai*bai+shi*shi*shi+ge*ge*ge==i)
printf("%d \t",i);
}
printf("\n");
}
标签:
原文地址:http://www.cnblogs.com/duanchen/p/4422482.html