#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("i = %d  a[i]=%d\n", i, a[i]); //prima stampo l'indice del numero dell'array
                                              //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: