online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
/*************************************************************** * Name: Prof. Orta * Course: Computer Science & Programming * Class: CS04103 Section: 1 & 2 * Assignment Date: 12/01/20 * File Name: Chapter13-converting.cpp ***************************************************************** * ID: Chapter 13 * Purpose: Demonstrate how to covert across different numeric systems *****************************************************************/ //This program demonstrates input and output of numbers //using the octal, decimal, and hexadecimal number systems. #include <iostream> #include <iomanip> using namespace std; int main() { int a, b; // Read two decimals and print hex and octal equivalents cout << "Enter two decimal numbers: "; cin >> a >> b; cout << "The numbers in decimal: " << a << '\t' << b << endl; cout << "The numbers in hexadecimal: " << hex << showbase << a << '\t' << b << endl; cout << "The numbers in octal: " << oct << a << '\t' << b << endl; // Read some hexadecimals and print their decimal equivalents cout << "Enter two hexadecimal numbers: "; cin >> hex >> a >> b; cout << "You entered decimal " << dec << a << '\t' << b << endl; // Read some octals and print their decimal equivalents cout << "Enter two octal numbers: "; cin >> oct >> a >> b; cout << "You entered decimal " << dec << a << '\t' << b << endl; return 0; }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue