Assignemnt #17
Code
/// Name: Sam Wilson
/// Period: 6
/// Program Name: moar
/// File Name: moar.java
/// Date Finished: 9/27/2015
import java.util.Scanner;
public class moar
{
public static void main( String[] args )
{
Scanner keyboard = new Scanner(System.in);
System.out.println( "What city is the capital of France?" );
keyboard.next();
System.out.println( "What is 6 multiplied by 7?" ); //I understand integers i wanted to try bytes
keyboard.nextByte();
System.out.println( "What is your favorite number between 0.0 and 1.0?" );
keyboard.nextDouble();
System.out.println( "Is there anything else you would like to tell me?" );
keyboard.next();
}
}
Picture of the output