#include <stdio.h>

int a[4], i;

int main() {
    for(i=0; i<4; i++) {
        scanf("%d", &a[i]); //input dell'iesimo elemento di a (input array)
    }
    for(i=0; i<4; i++) {
        printf("a[%d]=%d\n", i, a[i]); //prima stampo l'array con il suo indice al posto della i
                                       //e poi stampo il corrispettivo valore nell'array
    }
}

Embed on website

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