السلام عليكم ورحمة الله وبركاته
انا محتاجه اكتب كود c++
ل guessing game
اذا ممكن احد يشرح لي فكرة السؤال
Write C++ program where the program picks a random number between 1 and 100 and asks the user to guess the number.
If the user guess is incorrect, you have to tell him if her/his guess is less than or greater than the number the program picked.
If the user guessed incorrectly for five times, you have to print "You lose, try again"
If the user guess is correct, you have to print "You Win!!"
In the two cases (the user guessed correctly, or the user guessed incorrectly for five times) you have to ask the user if she/he wants to play again or not by typing (y,n)
y: for yes,
n: for no.
If the user chose not to play, you have to print the total number of loses/wins she/he has got.

