编辑代码

#include <stdio.h>
#include <math.h>

int main () {
    for(int i=0; i<8; i++){
        int y=pow(2,i);
        printf("%d ", y);
    }
    return 0;
}