I know power of 2 can be implemented using << operator. What about power of 10? Like 10^5? Is there any way faster than pow(10,5) in C++? It is a pretty straight-forw
if you want to calculate, e.g.,10^5, then you can:
int main() { cout << (int)1e5 << endl; // will print 100000 cout << (int)1e3 << endl; // will print 1000 return 0; }