Write C statement to declare an array to store marks of 50 students in English.
Answers
Answered by
2
Answer:
Explanation:
#include<stdio.h>
int main()
{
int n;
scanf("%d",&n); // number of students
int eng[50];
int i;
printf("The marks in english : ");
for(i=0;i<n;i++)
{
scanf("%d ",&eng[i]);
}
printf("The scores in english for %d students are : ", n);
for(i=0;i<n;i++)
{
printf("%d ",eng[i]);
}
}
I hope this is helpful :)
Similar questions