1234567891011121314151617
#include <iostream> #include <math.h> using namespace std; int main() { for (int i = 0; i <= 10; ++i) { long long int p=static_cast<int>(pow(static_cast<long double>(10), static_cast<long double>(i))); cout << p << "\n"; }; system("pause"); return 0; }
pow()
int
long long int