i design a guessing game
#include <iostream.h>
int main()
{
int guess;
cout << "Guess what number i am thinking... : ";
cin >> guess;
if (guess != 56)
{
if (guess != 56)
cout << "Guess Again....: ";
cin >> guess;
}
else if (guess == 56)
{
cout << "You are correct: ";
}
return 0;
}
when i run guess.exe the statement guess what number i am thinkning comes up
i input a number thats not 56 i get guess again
if i enter the any number weither or not it is correct it goes to the prompt c:\debug>_ instead of letting me guess again or outputing the You are correct statement.