You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
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;
|
|
}
|