online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <iostream> #include <time.h> using namespace std; int main() { int liczba, strzal, proba=0; cout << "Wylosowano liczbe z przedzialu od 1 do 100.\n"; srand(time(NULL)); liczba = rand()%100 + 1; cout << liczba; while (strzal != liczba) { cout << "\nTo twoja " << ++proba << " proba.\n"; cout << "Podaj, jaka to liczba: "; cin >> strzal; if (strzal > liczba) cout << "To za duzo."; else if (strzal < liczba) cout << "To za malo."; else if (strzal == liczba) cout << "Wygrales! Poswieciles na to " << proba << " prob" << endl; } cin.ignore(); getchar(); 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