online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
/*************************************************************** * Name: Prof. Rafael Orta * Course: Computer Science & Programming * Class: CS04225 ***************************************************************** * Purpose: Calculate the trip cost from Philadelphia to Boston *****************************************************************/ #include <iostream> using namespace std; int main() { int milesTraveled = 308; int mpgRating = 20; float fuelCost = 2.30; int totalGallons = 0; float tripCost = 0; totalGallons = milesTraveled / mpgRating; tripCost = totalGallons * fuelCost; cout << "The total cost of the trip is: $" << tripCost << 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