13 lines
251 B
C++
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;
|
||
|
}
|