You are on page 1of 1

#include<iostream.h> #include<iomanip.

h> void main() { int n; cout<< " DAME UN UN NUMERO DECIMAL ENTERO: " ; cin>> n; cout<< " en hexagecimal es: " << hex << n << ' \ n' << dec << n << " en octal es: " << oct << n << '\n' << setbase(10) << n << " en decimal es: " << n << endl; cin.ignore(); cin.ignore(); }