#include "pch.h" #include #include #include using namespace std; int main() { cout << "Witaj! Dzisiaj sprawdzimy jak dobry jestes z tabliczki mnozenia!" << endl; int lvl = 5; int state = 1; int stat = 0; int odp = 0; int x, y; srand(time(NULL)); bool prawda = false; while (!prawda) { cout << "Poziom: " << state << endl; x = rand() % lvl; y = rand() % lvl; cout << "ile to jest " << x+stat << " x " << y << "?" << endl; cout << "Odpowiedz: "; cin >> odp; if (odp == (x+stat) * y) { cout << endl << "Brawo!!!" << endl; state++; stat++; lvl++; system("cls"); } else prawda = true; } }