i made this kind of for a friend to see if he would get intp programing to but it dont work and i dont know whats wrong...
thx anything will helpCode:using namespace std;
int main()
{
int game;
int halo;
cout<<"Please input your game to be rated: n\ 1 for halo 2 for CS 3 for CoD \n";
cin>> game;
cin.ignore();
if ( game == 1 ) {
cout<<"please enter kills in halo:\n";
cin>> halo;
if ( halo <= 1 ) {
cout<<"god damn you suck!!!\n";
else if ( halo <= 10 ) {
cout<<"new arent you!?\n";
else if ( halo >= 11 ) {
cout<<"getting good.\n";
else if ( halo > 23 ) {
cout<<"lets play i need a good player! \n";
else if ( halo => 55 ) {
cout<<"CAMPER!!! stop camping!! \n";
cin.get()
}
if (game == 2 ) {
cout<<"input kills in cs: \n";
cin>> cs;
if ( cs <= 1 ) {
cout<<" newbie. \n";
if ( cs >= 8 ) {
cout<<"getting better! \n";
if ( cs >= 15 ) {
cout<<"id play with you but i would win. \n";
if ( cs >= 25 ) {
cout<<"could be cheating at this point but not sure how... \n";
if ( cs >= 40 ) {
cout<<"total hacker! stop killing bots! there people too. \n";
cin.get()
}
if ( game == 3 ) {
cout<<"please input nuber of kills: \n";
cin>> cod
if ( cod <= 2 ) {
cout<<"try shooting in the other direction. \n";
if ( cod >= 10 ) {
cout<<"not bad \n";
if ( cod >= 20 ) {
cout<<"sharp shot. \n";
if ( cod >= 30 ) {
cout<<"war machine!! \n";
if ( cod >= 40 ) {
cout<<"hitler himself. \n";
if ( cod >= 70 ) {
cout<<"somehow you are cheating or playing with noobs \n";
cin.get()
}
}
i think i overused the if statement lol
i also think my blocks arent seperated correctly.