#include using namespace std; int main() { int i; long long int j; long long int k = 1024 * 1024; long long int l; string s1 = " * 1024 * 1024 = "; cout << " Declared size actual memory hex hex" << endl; cout << " in megabytes size size -1" << endl; for (i=32;i<=1024;i=i+32) { cout.width(4) ; cout << i ; cout << s1 ; j = i * k ; l = j * 4 ; cout.width(12); cout << j ; cout.width(12); cout << l ; cout.width(12); cout << hex; cout << l ; cout.width(12); cout << l-1 ; cout << dec; cout << endl; } return(0); }