♫Woozy♫
❔ Number guessing game.
in python I did it like this:
print("Hi, welcome to the number guessing game.")
import random
number = random.randint(1,100)
guess = 0
while guess !=number:
guess = int(input("Guess:"))
if abs(guess - number) <=3 and guess !=number:
print("You're really close, keep going.")
elif guess == number:
print("You guessed correct!")
elif guess < number:
print("Higher!")
else:
print("Lower!")
Can I do it in a similar way on C#?
55 replies