Assignemnt #20
Code
///Colin Hinton
///5th Period
/// More Questions
/// MoreQuestions.java
/// 9-15-2015
import java.util.Scanner;
class MoreQuestions
{
public static void main(String[] args)
{
Scanner keyboard = new Scanner(System.in);
int math;
String cap, color, ff;
System.out.println("What city is the capitol of California?" );
cap = keyboard.next();
System.out.println("What is 6 plus 7?" );
math = keyboard.nextInt();
System.out.println("What is your favorite color?" );
color = keyboard.next();
System.out.println( "Is there anything else you would like to tell me?" );
ff = keyboard.next();
}
}
Picture of the output