Code:
#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;
}
Getting this result
Code:
1     10     99    1000    9999    100000
But i want
Code:
1     10     100    1000    10000    100000
where is my bug??