#include <stdio.h>
int main()  
{  
    int arr[10];  
    int i;  
    
    printf("\n\nRead and Print elements of an array:\n");
    printf("\n");	
    
    printf("Input 10 elements in the array :\n");  
    for(i=0; i<10; i++)  
    {  
	    printf("element - %d : ",i);  
        scanf("%d", &arr[i]);  
    }  
   
    printf("\nElements in array are: ");  
    for(i=0; i<10; i++)  
    {  
        printf("%d  ", arr[i]);  }
    printf("\n");
	return 0;	
}

Embed on website

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