Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Random;
- import java.util.Scanner;
- public class Assignment3 {
- public static void main(String[] args){
- Scanner pinput = new Scanner(System.in);
- String guess = keyboard.nextLine();
- System.out.println("Hello, welcome to the game");
- System.out.println("Let's play the Higher/Lower game! You will be given the opportunity to guess the number between 1 and 10.");
- System.out.println("Enter your guess: " + guess);
- }
- }
Add Comment
Please, Sign In to add comment