譚浩強《C++程序設計》第三章部分練習答案(頭文件均已經省略)

//12.0spa int main(){code int num; int i=0; cout<<"輸入一個很少於5位的正整數:"<<endl; cin>>num; while(num>0){ cout<<(num%10)<<" "; i++; num/=10; } cout<<"共有"<<i<<"位。"<<endl; return 0; }//15.0 int gy
相關文章
相關標籤/搜索