online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
//Ejercicio Propuesto 6 /*Crea un programa que imprima el resultado del siguiente problema: Dos personas ganan entre los 2 un total de $3,000. ¿Si una gana $500 más que otra, cuánto gana cada una? Nota: p1 = (3,000+500)/2, p2 = 3000-p1.*/ #include <iostream> #include <math.h> using namespace std; int main(){ int Total=3000, GanaM=500, P1=0, P2=0; P1=(Total+GanaM)/2; cout<<"La Persona uno gana: $"<<P1<<" Dolares..."<<endl; P2=Total-P1; cout<<"La Persona dos gana: $"<<P2<<" Dolares..."<<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