My Code:
#include <iostream>
int main()
{
// Main Story and logging of the Story
std::cout << "You are stuck in a room and you need to break out immediately!";
std::cout << std::endl;
std::cout << "If you fail to do so, you will die!";
std::cout << std::endl;
std::cout << "You need to enter the correct codes to continue...";
std::cout << std::endl;
std::cout << "-----------------------------------------------------" << std::endl;
std::cout << "-----------------------------------------------------" << std:: endl;
// Declaration and initialization
const int a = 4;
const int b = 2;
const int c = 3;
const int sum = a + b + c;
const int product = a * b * c;
// Logging of the sum and product
std::cout << "There are 3 numbers in the code" << std::endl;
std::cout << "Their sums add up to: " << sum << std::endl;
std::cout << "Their products are: " << product << std::endl;
return 0;
}
It’s Output: