write a java program to display the following series
@@@@@
@@@@@
Answers
Answered by
25
|| Answer ||
Java Program :-
class Pattern
{
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
System.out.print("Enter the number of rows: ");
int r=sc.nextInt();
for(int i=1;i<=r;i++)
{
for(int j=1;j<=i;j++)
System.out.print(j+" ");
System.out.println();
}
}
}
Similar questions