Assignemnt #131: Create Your Own Array
Code
/// Name: Kelsey Lieberman
/// Period 5
/// Program Name: CreateYourOwnArray
/// File Name: CreateYourOwnArray.java
/// Date Finished: 5/25/2016
public class CreateYourOwnArray
{
public static void main(String[] args)
{
int[] number = { 5, 10, 15, 20, 25 };
System.out.println();
for (int x = 0; x < 5; x ++)
{
System.out.print( number[x] + "\t");
}
System.out.println("\n\nI'll multiply these numbers by 10!\n");
for (int x = 0; x < 5; x ++)
{
System.out.print( (number[x] * 10) + "\t");
}
System.out.println();
}
}
Picture of the output