ARRAY DECLARE AND INDEXING

PHOTO EMBED

Sun Sep 18 2022 08:42:24 GMT+0000 (UTC)

Saved by @naveen_63833592 #c

#include<stdio.h>
#include<conio.h>

void main()
{
    int marks[10];
    
    marks[0]=50;
    marks[1]=20;
    
    for(int i=2;i<10;i++)
    {
        scanf("%d",&marks[i]);
    }
    
    for(int i=0;i<10;i++)
    {
        printf("marks: %d \n %d \n",i,marks[i]);    
    }
}
content_copyCOPY