// this program demonstrate the numeric use of manipulates..
#include <iostream>
#include <iomanip>
#include <limits>
using namespace std;
int main()
{
int x;
cout << "enter your number \n";
cin >> x;
cout << "value in decimal \t |" << dec << x << "\n";
cout << "value in octale \t |" << oct << x << "\n";
cout << "value in hexadecimal \t |" << hex << x << "\n";
cin.ignore(numeric_limits<streamsize>::max(),'\n');
cin.get();
return 0;
}
Thursday, 24 January 2013
program 2-7(52) Demonstrate numeric manipulator
08:06
ATEEK
No comments
0 comments:
Post a Comment