12345678910111213141516171819202122
int jegop(int a, int b){ if( b ==0) return 1; int i; int c=0; c=a; for( i = 0 ; i < b - 1 ; i++ ){ c = c * a; } return c; } int main (int argc, const char * argv[]) { cout << jegop(10,9) << " and " << jegop(10,10) << " and " << jegop(10,7) << endl; }
1000000000 and 1410065408 and 10000000
long long
short
int