# data[].attributes.attachment_link.readable_text
//l7p1
#include <iostream>
#include <iomanip>
#include <cmath>
#include <string>
using namespace std;
void inputArr(int mark[]);
void dispArr(int mark[]);
void updArr(int mark[]);
int bigArr(int mark[]);

int main()
{
    int mark[5];
    int max;
    
    //initialize
    inputArr(mark);
    dispArr(mark);
    updArr(mark);
    dispArr(mark);
    max=bigArr(mark);
    cout<<"the biggest in the array is "<<max<<endl;
 
    
   
 /*   for(int i=0;i<10;i++)
     cout<<"mark["<<i+1<<"]="<<mark[i]<<endl;
     cout<<endl;
 */
    for(int i=0;i<5;i++)
     if (mark[i] > 80)
       mark[i]++;
       cout<<endl; 
     dispArr(mark); 
 /*
    for(int i=0;i<10;i++)
     cout<<"mark["<<i+1<<"]="<<mark[i]<<endl;
    cout<<endl;
*/

    system("pause");
    return 0;
}

void inputArr(int mark[])
{for(int i=0;i<5;i++)
     {  cout<<"Enter mark["<<i+1<<"]= ";
            cin>>mark[i];}
    cout<<endl;
}

void dispArr(int mark[])
{for(int i=0;i<5;i++)
     cout<<"mark["<<i+1<<"]="<<mark[i]<<endl;
     cout<<endl; 
     }
     
void updArr(int mark[])
{for(int i=0;i<5;i++)
     mark[i]=mark[i]+2;
      cout<<endl;
      }
      
int bigArr(int mark[])
{
    int biggest=-999;
    for(int i=0;i<5;i++)
     if (mark[i] > biggest)
         biggest=mark[i];
    return biggest;
}



