#include <iostream>
int main()
{
//print welcome messages to terminal
std::cout << "You are tiered of parent controlls and are trying to bypass them";
std::cout << std::endl;
std::cout << "you need to enter the correct password using the given hints to continue" <<std::endl;
//declare 3 number code
const int CodeA = 4;
const int CodeB = 2;
const int CodeC = 3;
const int CodeSum = CodeA + CodeB + CodeC;
const int CodeProduct = CodeA * CodeB * CodeC;
//print CodeSum and CodeProduct to terminal
std::cout << std::endl;
std::cout << "The password is 3 Codes" << std::endl;
std::cout << "The Sum of the Codes is " << CodeSum << std::endl;
std::cout << "And the Product of the numbers is " << CodeProduct << std::endl;
int GuessA, GuessB, GuessC;
std::cin >> GuessA;
std::cin >> GuessB;
std::cin >> GuessC;
const int GuessSum = GuessA + GuessB + GuessC;
const int GuessProduct = GuessA * GuessB * GuessC;
if (GuessSum == CodeSum && GuessProduct == CodeProduct)
{
std::cout << "correct! You now have unlimited screen time";
}
else
{
std::cout << "you got cought and are grounded";
}
return 0;
}