Submit the program as num.cpp
#include <iostream>
using namespace std;
int main()
{
int x = 9;
cout << "value of 9 in decimal is "
<< dec << x << endl; // print decimal
value
cout << "value of 9 in octal is " <<
oct << x << endl; // print octal value
cout << "value of 9 in hex is " <<
hex << x << endl; // print hexadecimal value
/ / do calculation to
convert 9 into binary
//cout <<
"value of 100 in binary is " << a << b << c
<< d << endl; // print hexadecimal value
return
0;
}