Assignemnt #13
Code
/// Name: Ryan Volko
/// Period: 7
/// Program Name: Creating Variables
/// File Name: CreatingVariables.java
/// Date Finished: 9/14/2015
public class CreatingVariables {
public static void main( String[] args )
{
int X, Y, Z;
double balance, pi;
String title, first, last;
X = 20;
Y = 15;
Z = 8;
balance = 5.31;
pi= 3.14159265358979323846264338;
title = "Cheech";
first = "Ryan";
last = "Volko";
System.out.println( "The variable x is " + X );
System.out.println( "The variable y contains " + Y );
System.out.println( "The number " + Z + " is z." );
System.out.println( "Six minus .69 is " + balance );
System.out.println( "The first 26 numbers of Pi are " + pi );
System.out.println( "My name is " + first + "_" + title + "_" + last );
}
}
Picture of the output