Self-Test for Intermediate Course

  Let your child take a self-test with the following problem.
  If he/she cannot solve it, they have to take Beginning Course.

  Generate a dice number. And then try to guess the dice number three times.
  If you get the right dice number within three trials, escape from looping.(Use break).
  If you do not get the right number within three trials, print the right dice number generated from computer.
  (Use for loop or while loop)- Your test cases will be different from sample input and output, because it is random number.