一个小问题,不懂
#include<iostream>using namespace std;
int main()
{
int number=729,digit;
{
digit=number%10;
number=number/10;
cout<<digit;
}while(number>0);
cout<<endl;
return 0;
} 编译器给出的结果是9,但我们书上的答案给的是927,怎么算的呢 求解。我是新手
2011-04-02 20:24
2011-04-02 21:27
2011-04-02 21:28