OK.So i need to bild this table and so I did.But what I cant understand is why it works fine till I hit number 18.then sudenly like half of 1st number-s (array[x]) are missing. can someone please tell me whats the trick.Thank you.
#include <iostream>
using namespace std;
int main()
{
int size=0;
cout << "Enter a size? : ";
cin >> size;
int *Array = new int[size];
for(int i = 0;i<size;i++){
Array[i]=i+1;
}
for(int x = 0;x < size;x++){
for(int y = 0;y<size;y++) {
cout << Array[x]<<" x "<<Array[y]<<" = "<<Array[x]*Array[y]<<endl;
}
cout<<endl<<endl;
}
}