101
{ USER }
posts: 55
last: 09-Apr-2008
TITLE: Octal - Hexadecimal - Decimal conversion
DESCRIPTION: Coverting Octals, Hex and Decimals
Submitted: 09-Apr-2008 08:16:56 ( 38w 6d 2h ago ) Language: C++ (*.cpp *.h)
Views: 113 Lines of Code: 19 LINES
Rating:
rate: star1
star2
star3
star4
star5
dstar1
dstar2
dstar3
dstar4
dstar5  ( rated! )
  { 2.00 / 5 }
Difficulty: Intermediate
Bookmark
/* Author: 101
   Date: 09-04-2008
   Filename: 
   Description: Octal - Hexadecimal - Decimal conversion
   History: 
*/


#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;

}