Write a bluej program to print the following pattern:-
Attachments:
Answers
Answered by
2
class pattern
{
public static void main (String args [] )
{
System .out .println ("1");
System .out .println ("121");
System .out .println ("12321");
system .out .println ("1234321");
System .out .println ("12321");
System .out .println ("121");
System .out .println ("1");
}
}
{
public static void main (String args [] )
{
System .out .println ("1");
System .out .println ("121");
System .out .println ("12321");
system .out .println ("1234321");
System .out .println ("12321");
System .out .println ("121");
System .out .println ("1");
}
}
Similar questions
Sociology,
8 months ago
Social Sciences,
8 months ago
Math,
8 months ago
English,
1 year ago
Science,
1 year ago