#include <iostream>
#include <cstdlib>
#include <iomanip>
#include <cmath>
using namespace std;
int main()
{
cout << "正常二方(double→int)" << static_cast<int>(pow(10.0,2)) << endl
<< endl
<< endl; //正常的二方
cout <<"十的幾次方:(double→int)" << endl;
for (int i=0;i<=9;i++)
{
cout << left << setw(5) << i;
cout << static_cast<int>(pow(10.0,i)) << endl;
}
system("pause");
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y3N0ZGxpYj4KI2luY2x1ZGUgPGlvbWFuaXA+CiNpbmNsdWRlIDxjbWF0aD4KCnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpCnsKICAgICAgY291dCA8PCAi5q2j5bi45LqM5pa5KGRvdWJsZeKGkmludCkiIDw8IHN0YXRpY19jYXN0PGludD4ocG93KDEwLjAsMikpIDw8IGVuZGwgCiAgICAgICAgICAgPDwgZW5kbCAKICAgICAgICAgICA8PCBlbmRsOyAvL+ato+W4uOeahOS6jOaWuQogICAgICBjb3V0IDw8IuWNgeeahOW5vuasoeaWuTooZG91Ymxl4oaSaW50KSIgPDwgZW5kbDsKICAgICAgZm9yIChpbnQgaT0wO2k8PTk7aSsrKQogICAgICB7CiAgICAgICAgICBjb3V0IDw8IGxlZnQgPDwgc2V0dyg1KSA8PCBpOwogICAgICAgICAgY291dCA8PCBzdGF0aWNfY2FzdDxpbnQ+KHBvdygxMC4wLGkpKSA8PCBlbmRsOwogICAgICB9CiAgICAgIHN5c3RlbSgicGF1c2UiKTsKfQ==