Write a program to illustrate how the marks of 10 students are read in an array and then used to find the maximum marks obtained by a student in the class.
Answers
Answered by
2
Answer:
heya mate
int A [20],i,max,min,n;
printf ("enter the value for n");
scanf ("%d",&n);
printf ("enter the number");
for (i=0;i <n;i++);
scanf ("%d",&A [i]);
max=A [0];
for (i=0;i <n;i++);
if (max <A [i])
max=A [i];
printf("%d is greater",&max);
it will help you❤❤❤❤
Similar questions