online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> using namespace std; int main() { unsigned long int a, ca, b, cb, cmmdc, cmmmc, cnt=0; cout<<"a=? "; cin>>a; ca = a; cout<<"b=? "; cin>>b; cb = b; while(a!=b) { if(a>b) a=a-b; else b=b-a; cnt++; } cmmdc = a; cmmmc = ca*cb/cmmdc; cout<<"cmmdc = "<<cmmdc<<endl; cout<<"cmmmc = "<<cmmmc<<endl; cout<<"prin "<<cnt<<" scaderi"<<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