Program 1:

#include <iostream>
using namespace std;

int main(void) {

	 int guess;

	 cout << "Enter a number between 0 and 10 ";
	 cin >> guess;

	 if (guess == 5) {
		 cout << "You guessed the secret number\n";
	 }


	return 0;

}

Program 2:

#include <iostream>

using namespace std;

int main(void) {

	 int guess;

	 cout << "Enter a number between 0 and 10 ";
	 cin >> guess;

	 if (guess == 5) {
		 cout << "You guessed the secret number\n";
	 }	else {
		 cout << "Wrong\n";
	 }
	 if (guess >= 6) {
		 cout << "Too high\n";
	 }
	 if (guess <= 4) {
		 cout << "Too Low\n";
	 }

	return 0;

}