#include <iomanip> #include <iostream> using namespace std; int main( ) { cout << "Enter an octal number: "; int num; cin >> oct >> num; // Display number in decimal and octal cout << "Decimal: " << num << "\tOctal: " << oct << num << "\tOctal with base: " << showbase << num << endl; }