#include <iostream>
int main()
{
// Print welcome messages to the terminal
std::cout << std::endl;
std::cout << "Welcome to the world of Mathemon.";
std::cout << std::endl;
std::cout << "Enter the three mathemagical numbers to continue..." << std::endl;
// Declare mathemagical numbers
const int CodeA = 4;
const int CodeB = 2;
const int CodeC = 1;
const int CodeSum = CodeA + CodeB + CodeC;
const int CodeProduct = CodeA * CodeB * CodeC;
// Print CodeSum and CodeProduct to the terminal
std::cout << std::endl;
std::cout << "- There are three numbers." << std::endl;
std::cout << "- They add up to: " << CodeSum << std::endl;
std::cout << "- They mutiply to give: " << CodeProduct << std::endl;
int GuessA, GuessB, GuessC;
std::cin >> GuessA;
std::cin >> GuessB;
std::cin >> GuessC;
int GuessSum = GuessA + GuessB + GuessC;
int GuessProduct = GuessA * GuessB * GuessC;
if (GuessSum == CodeSum && GuessProduct == CodeProduct)
{
std::cout << "You've chosen the correct Mathematemons!";
}
else
{
std::cout << "You've chosen poorly and have angered the Mathemategods!";
}
return 0;