#include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;
int main()
{
int num, guess, tries = 0;
srand(time(0));
num = rand() % 100 + 1;
cout << "Gra - Zgadnij liczbe!\n\n";
do
{
cout << "Podaj liczbe z zakresu 1 - 100 : ";
cin >> guess;
tries++;
if (guess > num)
cout << "Za duzo!\n\n";
else if (guess < num)
cout << "Za malo!\n\n";
else
cout << "\nBrawo! Odgadles prawidlowa liczbe w " << tries << " prob!\n";
} while (guess != num);
return 0;
}