Assignemnt #15 and Using Variables
Code
/// Name: Mark Katz
/// Period: 6
/// Program Name: More Variables And Printing
/// File Name: MoreVariablesAndPrinting.java
/// Date Finished: 9/11/2015
public class UsingVariables
{
public static void main( String[] args )
{
int number;
double number2;
String words;
number= 113;
number2=2.71828;
words="Computer Science";
System.out.println( "This is room # " + number +"" );
System.out.println( "e is close to " + number2 +"");
System.out.println( "I am learning a bit about " + words +"" );
}
}
Picture of the output