1D array
Wed Jun 08 2022 12:42:14 GMT+0000 (Coordinated Universal Time)
Saved by
@KanishqJ8
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;
}
content_copyCOPY
Comments