#include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;
int main()
{
int dif;
srand(time(0));
cout << "Please Select a Difficllty E = Easy M = Medium H = Hard" <<endl;
cin >> dif;
int gn;
switch(dif){
case 'e || E':
int number = 1+(rand()%10);
cout << "Guess a number beetween 1 and 10" <<endl;
cin >> gn;
if(gn == number){
cout << "You won!" <<endl;
}
break;
}
}
Thanks.