online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <iostream> using namespace std ; void eingabe(int* zahl); void rechnung(int* zahl); int main(void) { int zahl = 0; eingabe(&zahl); rechnung(&zahl); } void eingabe(int* zahl){ cout << "Gib Zahl ein : " << endl; cin >> *zahl; } void rechnung(int* zahl){ int i = 0; int anz =0; cout << "Zerlegung : "; for ( i =2; i <= *zahl ; i ++){ while ( *zahl % i == 0) { if(anz ==0){ cout << i; } else { cout << "*" << i; } anz ++; *zahl /= i ; } } }

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