4. Write a program in C which takes input of marks from 5 of your friends and store it
in an array. Display who got the highest marks.
Answers
Answered by
0
Answer:
#include<stdio.h>
int main(){
int a[5],i,max=-9999;
for(i=0;i<5;i++)
{
scanf(%d,&a);
}
for(i=0;i<5;i++)
{
if(max<a[i])
max=a[i];
}
printf(%d,max);
Similar questions