Friday, 27 April 2012
Program Of Manipulator DEC,HEX,OCT In C++
#include<iostream.h>
#include<conio.h>
main()
{
clrscr();
int i;
cout<<"Enter hexadecimal number=";
cin>>
hex
>>i;
cout<<"\n Hexdecimal Value ="<<hex<<i<<endl;
cout<<"\n Octal Value ="<<
oct
<<i<<endl;
cout<<"\n Decimal Value ="<<dec<<i<<endl;
getch();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment