take value from array and give output through it (1 D array)
#include <stdio.h>
int main(void)
{
int marks[4];
for(int i = 0; i < 4; i++ ){
scanf("%d", &marks[i]);
printf("Enter the value of %d element of array\n",i);
}
for(int i = 0; i < 4; i++ ){
printf("the value of %d element of array is %d\n",i,marks[i]);
}
}
Comments
Post a Comment