Assignment #15
Code
/// Name: Ian Stanko
/// Period: 5
/// Program Name: UsingVariables
/// File Name: UsingVariables.java
/// Date Finished: 9/23/2015
public class UsingVariables
{
public static void main( String[] args )
{
int firstVariable;
double secondVariable;
String thirdVariable;
firstVariable = 113;
secondVariable = 2.71828;
thirdVariable = "Computer Science";
System.out.println( "This is room #" + firstVariable + "." );
System.out.println( "e is close to " + secondVariable + "." );
System.out.println( "I am learning a bit about " + thirdVariable + "." );
}
}
Picture of the output