online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <iostream> using namespace std; float a, b; int opcja; int main() { cout << "podaj liczbe 1" << endl; cin >> a; cout << "podaj liczbe 2" << endl; cin >> b; cout << "jakie chcesz wykonac dzialanie" << endl; cout << "1 - dodwanie" << endl; cout << "2 - odejmowanie" << endl; cout << "3 - mnozenie" << endl; cout << "4 - dzielenie" << endl; cin >> opcja; if(opcja == 1) { cout << a + b << endl; } else if(opcja == 2) { cout << a - b << endl; } else if(opcja == 3) { cout << a * b << endl; } else if(opcja == 4) { cout << a / b << endl; } else { cout << "Bledna opcja" << 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