//Pattern II public class Pattern { public static void main(String[]args) { for
ID: 3614861 • Letter: #
Question
//Pattern IIpublic class Pattern
{
public static void main(String[]args)
{
for (int row = 1; row <=6;row++)
{
for (intcolumn =1; column <=row; column++)// for columns
System.out.print(column + "");
System.out.println();
}
}//end of main
}// end of class
here is my program, i am trying to get
1
21
321
4321
54321
654321
but i keep on getting
1
12
123
1234
12345
123456
When I try changing the program I keep on getting a comiling erroror i get an infinite list of numbers.
any help would be greatly appreciated.
Explanation / Answer
please rate - thanks need blanks before numbers import java.util.*; public class untitled { public static void main(String[]args) { for (int row = 1; rowRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.