这题目问题出在哪里了?》》

#include<stdafx.h> #include<iostream> #include<fstream> #include<string> using namespace std; void main() { int i; int ge,shi,bai; for(i=100;i<=1000;i++) { bai=i/100; shi=i/10-bai*10; ge=i%10; if(bai*bai+shi*shi+ge*ge==i) { cout<<i<<endl; } } system("pause"); }
运行程序后直接出现“请按任意键继续. . .”
