#include <stdio.h> int a=2, b=10; int main() { int c,d,e; for(c=0; c<b; c++) { printf("%d^%d = ", a, c); d=1; for(e=0; e<c; e++) { 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: