Octal - Hexadecimal - Decimal conversion

Submitted by:J Kamy81

Date added:25 April, 2018


C++ Code Snippets for Octal - Hexadecimal - Decimal conversion

Tags: hexadecimal , octal , decimal conversion

Code Snippet:

#include <iostream.h>
#include <iomanip.h>
int main()
cout<<"The decimal value of 15 is "<<15<<endl;
cout<<"The octal value of 15 is "<<setiosflags(ios::oct)<<15<<endl;
cout<<"The hex value of 15 is "<<setiosflags(ios::hex)<<15<<endl;

return 0;