online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
//$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ // Author: Maria Logan $ // Date: 09/10/2022 $ // $ // This change calculator will add up the coins $ // after the user inputs them $ // and display the results. $ // $ // $ //$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ #include <iostream> using namespace std; int main() { int quarters = 0; int dimes = 0; int nickels = 0; double tot_Q = 0.0; //total for quarters double tot_D = 0.0; // total for dimes double tot_N = 0.0; // total for nickels double total_cash = 0.0; //total cash cout << "$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$\n"; cout << "$$$$$$ Hello I am Change-0 $$$$$$$\n"; cout << "$$$ here to count your change $$$$\n"; cout << "$Let's count some change together$\n"; cout << "$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$\n\n"; cout << "How many quarters do you have? \n"; cin >> quarters; tot_Q = quarters * 0.25; cout << "You have $" << tot_Q << " in quarters.\n"; cout << "How many dimes do you have? \n"; cin >> dimes; tot_D = dimes * 0.10; cout << "You have $" << tot_D << " in dimes.\n"; cout << "How many nickels do you have?\n"; cin >> nickels; tot_N = nickels *0.05; cout << "You have $" << tot_N << " in nickels.\n"; total_cash = tot_Q + tot_D + tot_N; cout << "All together you have $" << total_cash << " in cash.\n"; 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