#include <iostream>
using namespace std;
//Es 1. Memorizza in un array di dieci posizioni i primi dieci numeri naturali
int A[10]={1,2,3,4,5,6,7,8,9,10};
int i;
int V[10];
int T[10];
int main() {
for (i=0; i<10; i++)
V[i]=i+1;
for (i=0; i<10; i++)
cout<<V[i]<<"\t";
cout<<endl;
for (i=0; i<=10; i++)
T[i-1]=i;
for (i=0; i<10; i++)
cout<<T[i]<<"\t";
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKLy9FcyAxLiBNZW1vcml6emEgaW4gdW4gYXJyYXkgZGkgZGllY2kgcG9zaXppb25pIGkgcHJpbWkgZGllY2kgbnVtZXJpIG5hdHVyYWxpCmludCBBWzEwXT17MSwyLDMsNCw1LDYsNyw4LDksMTB9OwppbnQgaTsKaW50IFZbMTBdOwppbnQgVFsxMF07CmludCBtYWluKCkgIHsKCQoJZm9yIChpPTA7IGk8MTA7IGkrKykKCSAgIFZbaV09aSsxOwoJICAgCglmb3IgKGk9MDsgaTwxMDsgaSsrKQoJY291dDw8VltpXTw8Ilx0IjsKCQoJY291dDw8ZW5kbDsKCQoJZm9yIChpPTA7IGk8PTEwOyBpKyspCgkgICBUW2ktMV09aTsKCSAgIAoJZm9yIChpPTA7IGk8MTA7IGkrKykKCWNvdXQ8PFRbaV08PCJcdCI7CgkKCQoJcmV0dXJuIDA7CgkKfQo=