1
Creator ID: 53052674 Answerer ID:_____________ Write what each step of the code does. Please use complete sentences. 1. Scanner stdin = new Scanner (System.in); int month; int day; 2. System.out.println(“Type in the month of your birthday in integers: “); month = stdin.nextInt( ); 3. System.out.println(“Type in the day of your birthday in integers: “); day = stdin.nextInt( ); 4. System.out.println(“Your birthday is on “ + month + “/” + day + “.”)

Comp Sci Wksht

Embed Size (px)

DESCRIPTION

worksheet on data types

Citation preview

Page 1: Comp Sci Wksht

Creator ID: 53052674 Answerer ID:_____________

Write what each step of the code does. Please use complete sentences.

1. Scanner stdin = new Scanner (System.in);

int month;

int day;

2. System.out.println(“Type in the month of your birthday in integers: “);

month = stdin.nextInt( );

3. System.out.println(“Type in the day of your birthday in integers: “);

day = stdin.nextInt( );

4. System.out.println(“Your birthday is on “ + month + “/” + day + “.”)