programming-examples/c++/Others/Octal, hex and decimal conversion example 2.cpp
2019-11-15 12:59:38 +01:00

13 lines
251 B
C++

Octal, hex and decimal conversion example 2
#include <iostream.h>
int main()
{
cout<<"The decimal value of 15 is "<<15<<endl;
cout<<"The octal value of 15 is "<<oct<<15<<endl;
cout<<"The hex value of 15 is "<<hex<<15<<endl;
return 0;
}