diff --git a/Git_Practice/Git_Practice.cpp b/Git_Practice/Git_Practice.cpp index 5c9324f..b1c606a 100755 --- a/Git_Practice/Git_Practice.cpp +++ b/Git_Practice/Git_Practice.cpp @@ -17,8 +17,10 @@ bool Guess(int number) target = -1; return true; } - else std::cout << "Wrong" << std::endl; + else if (number > target) std::cout << "Smaller" << std::endl; + else if (number < target) std::cout << "Bigger" << std::endl; return false; + } int main(array^ args) { @@ -31,4 +33,4 @@ int main(array^ args) while (!Guess(guess)); return 0; -} \ No newline at end of file +}