Computer Science, asked by Snehapareek3198, 1 month ago

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 ayush985890
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