#include <stdio.h>
int a = 2;
int b = 10;
int main() {
int c,d,e;
for(c=0; c<=b-1; c=c+1) {
printf("%d^%d = ", a,c);
d=1;
for(e=0; e<c; e=e+1){
d=d*a;
}
printf("%d\n", d);
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: