Getting this resultCode:#include <stdio.h> #include <math.h> int main() { int i, k; for(i = 0; i < 6; i++){ k = pow(10, i); printf("%d\t", k); } return 0; }
But i wantCode:1 10 99 1000 9999 100000
where is my bug??Code:1 10 100 1000 10000 100000