C program to print the marks of students using one dimensional array.
#include<stdio.h>
int main()
{
int marks[4] = {343, 56, 89,45};
for (int i = 0; i < 4; i++)
{
printf("the value of %d element of the array is %d\n", i, marks[i]);
}
return 0;
}
OUTPUT:
the value of 0 element of the array is 343
the value of 1 element of the array is 56
the value of 2 element of the array is 89
the value of 3 element of the array is 45
Tysm
ReplyDelete