#include <stdio.h>

int l=3, m=15;

int main() {
    int n, f, g;
    for(n=0; n<=m; n++) {
        printf("%d^%d = ", l, n);
        f=1;
        for(g=0; g<n; g++) {
            f=f*l;
        }
        printf("%d\n", f);
    }
    
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: