#include <iostream>
usingnamespace std;
int main (){
int x;
int y;
int a;
int b;
cout << "insert first number ";
cin >> a;
cout << "insert second number ";
cin >> b;
int asd[a][b];
for(x=1;x<=a;x++){
for(y=1;y<=b;y++)asd[x][y]=x*y;
}
for(x=1;x<=a;x++){
for(y=1;y<=b;y++)cout << x << "*" << y << "=" << asd[x][y] << " ";
cout << "\n";
}
system("pause");
return 0;
}
If i put in b(line12) a number major than 9 the exe crashes, while with a(line10) i can put any number and it works properly. Anyone could explain me why ?