// a progran to illustrate output conversions #include #include int main() { cout << "The decimal (base 10) value of 15 is " << 15 << endl << "The octal (base 8) value of 15 is " << setiosflags(ios::oct) << 15 << endl << "The hexadecimal (base 16) value of 15 is " << setiosflags(ios::hex) << 15 << endl; return 0; }