Pb 1:
#include
using namespace std;
int main() {
int n, a[100], i, j, aux;
cin>>n;
for(i=1; i<=n; i++)
cin>>a[i];
for(i=1; i=1; i--)
cout&It;&It;a[i];
Pb 2
#include
#include
using namespace std;
int main() {
int n, a[100], i;
cin>>n;
for(i=1; i<=n; i++)
a[i]=i;
cout<<"primele n nr nat consecutive sunt: ";
for(i=1; i<=n; i++)
cout <=1; i--)
cout<