Lecture 1 Example Code

Outprint systemoutprint please enter the width of the

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: m.out.print( System.out.print( "Please enter the width of the rectangle: "); int width = keyboard.nextInt(); keyboard.nextInt(); System.out.print( System.out.print( "Please enter the height of the rectangle: "); int height = keyboard.nextInt(); keyboard.nextInt(); int area = width * height; System.out.println("The area is " + area); } } CSE 201 – Elementary Computer Programming 29...
View Full Document

This note was uploaded on 10/31/2013 for the course CSE 1223 taught by Professor Ravichandran during the Summer '13 term at Ohio State.

Ask a homework question - tutors are online