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.
- Sample Input1 and Ouput1
Enter a guessing number : 4
Congratulation. You got the right number
- Sample Input2 and Ouput2
Enter a guessing number : 3
Wrong
Enter a guessing number : 2
Wrong
Enter a guessing number : 5
Wrong
The right number is 6.
Homepage