int main(){ // int marks[4]; // marks[0]=34; // printf("marks of student1 is %d \n",marks[0]); int marks[4]; for(int i=0; i<4; i++){ printf("enter the value of %d element of array\n",i); scanf("%d",&marks[i]); } for(int i=0; i<4; i++){ printf("the value of %d element of array is %d\n",i,marks[i]); } return 0; }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter