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