TripleX Terminal Showcase

Code:

#include

using namespace std;

int main()

{

cout << "You have been kidnapped!\n" << endl;

cout << "You must open all the locks to escape!\n" << endl;

int a = 4;

int b = 2;

int c = 8;

int sum = a + b + c;

int product = a * b *c;



cout << "Each lock consists of three numbers" << endl;

cout << "Hint 1: All three numbers total up to: " << sum << endl;

cout << "Hint 2: The code when multiplied together equals: " << product << endl;

return 0;

}

Solution:
You have been kidnapped!

You must open all the locks to escape!

Each lock consists of three numbers
Hint 1: All three numbers total up to: 14
Hint 2: The code when multiplied together equals: 64

1 Like

I like what I see :100:

Privacy & Terms