Le_D_Lab0c - / A+ /Name /Date /Lab Computer Science -Dat Le...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
//© A+ Computer Science - www.apluscompsci.com //Name -Dat Le //Date -8/24/11 //Lab -0c import static java.lang.System.*; import java.util.Scanner; public class Lab0c { public static void main (String[] args) { Scanner keyboard = new Scanner(System.in); byte byteOne, byteTwo; short shortOne, shortTwo; int intOne, intTwo; long longOne, longTwo; float floatOne, floatTwo; double doubleOne, doubleTwo; //add in input for all variables in the order shown in Lab0c.doc System.out.print("Enter an integer :: "); intOne = keyboard.nextInt(); System.out.print("Enter an integer :: "); intTwo = keyboard.nextInt(); System.out.print("Enter an double :: "); doubleOne = keyboard.nextDouble(); System.out.print("Enter an double :: "); doubleTwo = keyboard.nextDouble(); System.out.print("Enter an float :: "); floatOne = keyboard.nextFloat(); System.out.print("Enter an float :: "); floatTwo = keyboard.nextFloat(); System.out.print("Enter an short :: "); shortOne = keyboard.nextShort(); System.out.print("Enter an short :: ");
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

Le_D_Lab0c - / A+ /Name /Date /Lab Computer Science -Dat Le...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online