aodhidbrbeididbe's status on Monday, 13-Jun-11 23:15:04 UTC

  1. import java.util.Scanner; public class main { public static void main(String[] args) { double a, b; int c; int d; Scanner in = new Scanner(System.in); a = Math.random(); b = Math.floor(a*10); c = (int)b; System.out.println("GUESS THE NUMBER!"); d = in.nextInt(); if(d == c) { System.out.println("YOU GOT IT RIGHT!"); } else { System.out.println("YOU WERE WRONG - THE CORRECT ANSWER WAS: " + c); } System.out.println("THANKS FOR PLAYING GREG'S NUMBER GUESSING GAME"); } } does that look optimized enough?

    Monday, 13-Jun-11 23:15:04 UTC from StatusNet Desktop in context