Question: In java 1. Write a program that declares an integer (int) variable named secret and sets it to some constant (literal) value. Then read an

In java
1. Write a program that declares an integer (int) variable named secret and sets it to some constant (literal) value. Then read an integer from the input and print "You're a winner!" if the value is equal to the secret
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
