2013-10-12 04:14:11 UTC
Here is what I have so far
// Multiply.java - This program prints the numbers 0 through 10 along
// with these values multiplied by 10 and by 100.
// Input: None.
// Output: Prints the numbers 0 through 10 along with their values multiplied by 10 and by 100.
public class NewMultiple
{
public static void main(String args[])
{
String head1 = "Number: ";
String head2 = "Multiplied by 10: ";
String head3 = "Multiplied by 100: ";
int numberCounter = 0; // Numbers 0 through 10.
int byTen = numberCounter * 10; // Stores the number multiplied by 10.
int byHundred = numberCounter * 100; // Stores the number multiplied by 100.
final int NUM_LOOPS = 10; // Constant used to control loop.
// This is the work done in the housekeeping() method
System.out.println("0 through 10 multiplied by 10 and by 100" + "\n");
// This is the work done in the detailLoop() method
// Initialize loop control variable.
int count = 0;
// Write your counter controlled while loop here
for (numberCounter = 0; numberCounter < 10; numberCounter++)
{
System.out.println(byTen);
System.out.println(byHundred);
}
System.out.println(head1 + numberCounter);
System.out.println(head2 + byTen);
System.out.println(head3 + byHundred);
// Next number.
// This is the work done in the endOfJob() method
System.exit(0);
} // End of main() method.
} // End of Multiply class.
and the if you run it all it says for the print out is
Process finished with exit code 1
Thanks for the help :)