Assignment 52, The Worst Number-Guessing Game Ever
Code
///Name: Stella Koliavas
///Period: 5
///Program Name: Guess
///File Name: Guess.java
///Date Finshed: 12/1/15
import java.util.Scanner;
public class Guess
{
public static void main (String[] args)
{
Scanner siri = new Scanner(System.in);
int x, s;
s = 7;
System.out.println("LET'S PLAY A GUESSING GAME");
System.out.println("I'M THINKING OF A NUMBER BETWEEN 1 AND 10 GUESS WHAT IT IS!!111! ");
x = siri.nextInt();
System.out.println("The secret number was " + s + " you guessed " + x + "." );
}}
Picture of the output