#include #include int main() { //int x; //char y; //short int z; //double dd; //cout << "The size of an int is " << sizeof(int) << endl; //cout << "The size of a short int is " << sizeof(short int) << endl; //cout << "The size of a char is " << sizeof(char) << endl; //cout << "The size of a float is " << sizeof(float) << endl; //cout << "The size of a double is " << sizeof(double) << endl; //cout << "The size of a long double is " << sizeof(long double) << endl; //dd = 4. / 3; //cout << "dd is " << dd << endl; //x = 4. / 3; //cout << "x is " << x << endl; //dd = 1.49; //x = dd * 100 + .5; // added .5 to round up //cout << "dd is " << dd << endl; //cout << "x is " << x << endl; int i, j; double x, y; i = 4; i = i + 2; j = i - i / 2; cout << "j is " << j << endl; x = sqrt(16.); i = x / 3; j = x + i + .5; cout << "j is " << j << endl; i = 7. / 3; j = 4; j = j + i; j = j + 2 * i + 1; x = j / 2; cout << "x is " << x << endl; }