How do I code an application that allow a user 10 chances to guess a random number from 1-50 and each time it's incorrect it display "Try Again" or guess correctly "Congradulations"
After 10 tries, it display the random number.

I know this is very simple, but I am a stylist who is just learning this stuff.

Thanks,

J