Răspuns:
using namespace std;
#include <iostream>
#include <stdlib.h>
#include <math.h>
int main(){
int n1[100],n2[100],i,n;
cout<<"numar elevi : ";cin>>n;
for(i=0;i<n;i++){
cout<<"Note pentru elevul "<<i+1<<"\n";
cout<<"Nota 1 ";cin>>n1[i];
cout<<"Nota 2 ";cin>>n2[i];
};
cout<<"Note finale \n";
for(i=0;i<n;i++){
if (n1[i]>n2[i])
cout<<n1[i]<<" ";
else
cout<<n2[i]<<" ";
};
}