This preview shows page 1. Sign up to view the full content.
Unformatted text preview: int number; int numSq; System.out.print ("Enter your name, please: "); // missing semicolon Name = Keyboard.readString(); // Name is a String not an int System.out.print ("What is your favorite number? "); number = Keyboard.readInt(); numSq = number * number; System.out.println (Name + ", the square of your number is " + numSq); // Missing the concatenation operator + } // Missing a closing brace }...
View Full Document
This note was uploaded on 03/22/2010 for the course CS 202 taught by Professor Fong during the Spring '10 term at SIU Carbondale.
- Spring '10
- Computer Science