Assignemnt #20

Code

/// Name: Carlos Sosa
/// Period: 6
/// Program Name: MoreQuestions
/// File Name: MoreQustions.java
/// Date Finished: 10/1/2015
import java.util.Scanner;
class More{

    public static void main(String[] args) {
    
    Scanner keyboard = new Scanner(System.in);


		System.out.println( "What city is the capital of Italy?" );
		keyboard.next();

		System.out.println( "What is 2 multiplied by 4? " );
		keyboard.nextInt();
        
    System.out.println("What is your favorite number between 2 and 3? ");
    keyboard.nextDouble();

		System.out.println( "Is there anything else you would like to tell me?" );
		keyboard.next();

		
	}
}
    
    
    

Picture of the output

Assignment2.html