C++ examples for Language Basics:Console
Int literal in octal and hexadecimal
#include <iostream> using namespace std; int main()/*from w w w . j a v a 2 s . co m*/ { cout << "The decimal value of 025 is " << 025 << endl << "The decimal value of 0x37 is "<< 0x37 << endl; return 0; }