Răspuns:
Cele in pseudocod le ai in imagini. Mai jos iti las si codurile
1.
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n,v[1001],maxx=0,nr=0;
cin>>n;
for(int i=1;i<=n;i++)
{
cin>>v[i];
if(i<=n/2 and v[i]>maxx)
maxx=v[i];
if(i>n/2 and v[i]==maxx)
nr++;
}
cout<<nr;
return 0;
}
2.
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n,i=1;
cin>>n;
while(i!=n+1)
{
for(int j=1;j<=i;j++)
cout<<j<<" ";
cout<<'\n';
i++;
}
return 0;
}
Sper ca te-am ajutat!!