//Initialize an array during run time and print it
#include <stdio.h>

int main() {
    int a[100],i,n;
    printf("Enter number of elements : \n");
    scanf("%d",&n);
    printf("Enter array of Elements : \n");
    for(i=0;i<n;i++){
        scanf("%d",&a[i]);
    }
    printf("Entered elements are : ");
    for(i=0;i<n;i++){
        printf("%d  ",a[i]);
    }
    
    return 0;
}

Embed on website

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