Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions egorics.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#include <iostream>
#include <cstdlib>
#include <ctime>

int main() {
srand(time(0)); // Инициализация генератора случайных чисел

std::string predictions[] = {
"Вы найдете клад!",
"Вас ждет сюрприз!",
"Вы встретите старого друга.",
"Вас ждет удачный день!",
"Вы получите неожиданное сообщение.",
"Вас ждет приключение!",
"Вы найдете то, что давно искали.",
"Вас ждет успех в делах!"
};

int index = rand() % 8; // Случайный выбор предсказания

std::cout << "Добро пожаловать в программу 'Магический шар'!\n";
std::cout << "Ваше предсказание: " << predictions[index] << std::endl;

return 0;
}