Commit 53e13f0b authored by Michael's avatar Michael

michael.davityan:exercise_06_36v6

parent 3d138f93
Pipeline #25423893 failed with stage
in 58 seconds
......@@ -4,7 +4,7 @@
#include <ctime>
#include <unistd.h>
void printMessage(bool answerStatus);
void printMessage(const bool answerStatus);
void printPassMessage(const int messageType);
void printNotPassMessage(const int messageType);
......@@ -30,6 +30,7 @@ main()
}
int answer;
std::cin >> answer;
answerStatus = (number1 * number2 == answer);
if (-1 == answer) {
break;
}
......@@ -39,7 +40,7 @@ main()
}
void
printMessage(bool answerStatus)
printMessage(const bool answerStatus)
{
const int messageType = 1 + std::rand() % 4;
if (answerStatus) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment